From 6307bc5da813462720b4a6f51f7df63a1c992a3f Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Fri, 12 Dec 2008 10:37:33 +0000 Subject: [PATCH] fix uninitialised variable git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/performance/trunk@27283 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ GSSkipMutableArray.m | 1 + GSThroughput.h | 1 + 3 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 21c6245..1a77e38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-12-12 Richard Frith-Macdonald + + * GSSkipMutableArray.m: Fix uninitialised variable. + 2008-05-30 Richard Frith-Macdonald * GSThroughput.h: diff --git a/GSSkipMutableArray.m b/GSSkipMutableArray.m index 710cf1d..073d425 100644 --- a/GSSkipMutableArray.m +++ b/GSSkipMutableArray.m @@ -251,6 +251,7 @@ static Class concreteClass = 0; p = l->header; k = l->level; + graph = [[NSMutableString alloc] initWithCapacity: 1024]; [graph appendString: [NSString stringWithFormat: @"digraph %@ {\n", graphName]]; [graph appendString: @"graph [rankdir = LR];\n"]; diff --git a/GSThroughput.h b/GSThroughput.h index 318e6ed..70498bd 100644 --- a/GSThroughput.h +++ b/GSThroughput.h @@ -85,6 +85,7 @@ extern NSString * const GSThroughputTotalKey; * to call the +tick method in the current thread.
* Passing a value of NO for aFlag will turn off the timer for the current * thread.
+ * For the timer to work, the thread's runloop must be running.
* Keeping the notion of the current time up to date is important for * instances configured to record stats broken down over a number of periods, * since the periodic breakdown must be adjusted each second.