mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix initialisation of static variable 'timer'
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13887 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b1c820d10d
commit
0ba2798bb5
1 changed files with 2 additions and 1 deletions
|
@ -259,7 +259,7 @@ static unsigned local_object_counter = 0;
|
|||
|
||||
|
||||
/* class defaults */
|
||||
static NSTimer *timer;
|
||||
static NSTimer *timer = nil;
|
||||
|
||||
static BOOL cacheCoders = NO;
|
||||
static int debug_connection = 0;
|
||||
|
@ -3149,6 +3149,7 @@ static void callEncoder (DOContext *ctxt)
|
|||
if (0)
|
||||
{
|
||||
id item;
|
||||
|
||||
if (timer == nil)
|
||||
{
|
||||
timer = [NSTimer scheduledTimerWithTimeInterval: 1.0
|
||||
|
|
Loading…
Reference in a new issue