fixed: somenow not initializing this pointer crashes us in libpthread
authorBob van Loosen <bob.loosen@gmail.com>
Mon, 14 May 2012 17:54:53 +0000 (19:54 +0200)
committerBob van Loosen <bob.loosen@gmail.com>
Mon, 14 May 2012 17:54:53 +0000 (19:54 +0200)
src/lib/platform/threads/threads.h

index e29578c728a1b5b0abf5288b5898615433fb6498..6cc240644dc5659fd2bfea838cabb975fac98a3a 100644 (file)
@@ -46,7 +46,7 @@ namespace PLATFORM
     virtual ~CThread(void)
     {
       StopThread(0);
-      void *retVal;
+      void *retVal = NULL;
       ThreadsWait(m_thread, &retVal);
       #if defined(__WINDOWS__)
       (void *)retVal; //"unreferenced local variable" warning