adium 4752:d41570209f10: This variable seems to have a chance to...

commits at adium.im commits at adium.im
Wed Mar 21 21:46:28 UTC 2012


details:	http://hg.adium.im/adium/rev/d41570209f10
revision:	4752:d41570209f10
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Wed Mar 21 22:45:52 2012 +0100

This variable seems to have a chance to be used while uninitialized, causing a crash.

diffs (12 lines):

diff -r ce87d9de6f9f -r d41570209f10 Source/AILoggerPlugin.m
--- a/Source/AILoggerPlugin.m	Tue Mar 20 00:09:51 2012 +0000
+++ b/Source/AILoggerPlugin.m	Wed Mar 21 22:45:52 2012 +0100
@@ -1454,7 +1454,7 @@
 			dispatch_group_enter(logIndexingGroup);
 			while (_remainingLogs > 0 && bself.indexingAllowed) {
 				NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-				__block NSString *__logPath;
+				__block NSString *__logPath = nil;
 				NSString  *logPath = nil;
 				
 				dispatch_sync(dirtyLogSetMutationQueue, ^{




More information about the commits mailing list