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:
Richard Frith-Macdonald 2002-06-15 10:07:06 +00:00
parent b1c820d10d
commit 0ba2798bb5

View file

@ -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