Charles Davis : winemac.drv: Always initialize a closure-captured object pointer.
Module: wine Branch: master Commit: a872c21a48ddb6ba876eb906b65e6393c1be869d URL: http://source.winehq.org/git/wine.git/?a=commit;h=a872c21a48ddb6ba876eb906b6... Author: Charles Davis <cdavis5x(a)gmail.com> Date: Thu Jan 29 16:23:25 2015 -0700 winemac.drv: Always initialize a closure-captured object pointer. --- dlls/winemac.drv/cocoa_event.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winemac.drv/cocoa_event.m b/dlls/winemac.drv/cocoa_event.m index 757ad6b..c011f8d 100644 --- a/dlls/winemac.drv/cocoa_event.m +++ b/dlls/winemac.drv/cocoa_event.m @@ -470,7 +470,7 @@ void OnMainThread(dispatch_block_t block) NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; NSMutableDictionary* threadDict = [[NSThread currentThread] threadDictionary]; WineEventQueue* queue = [threadDict objectForKey:WineEventQueueThreadDictionaryKey]; - dispatch_semaphore_t semaphore; + dispatch_semaphore_t semaphore = NULL; __block BOOL finished; if (!queue)
participants (1)
-
Alexandre Julliard