From: Bob van Loosen Date: Mon, 14 May 2012 17:54:53 +0000 (+0200) Subject: fixed: somenow not initializing this pointer crashes us in libpthread X-Git-Tag: upstream/2.2.0~1^2~28^2~7^2 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=5806561ef938c6201adf4dccb3f80cebb1aa215b fixed: somenow not initializing this pointer crashes us in libpthread --- 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