From 5806561ef938c6201adf4dccb3f80cebb1aa215b Mon Sep 17 00:00:00 2001 From: Bob van Loosen Date: Mon, 14 May 2012 19:54:53 +0200 Subject: [PATCH] fixed: somenow not initializing this pointer crashes us in libpthread --- src/lib/platform/threads/threads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/platform/threads/threads.h b/src/lib/platform/threads/threads.h index e29578c..6cc2406 100644 --- a/src/lib/platform/threads/threads.h +++ b/src/lib/platform/threads/threads.h @@ -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 -- 2.34.1