[pulseaudio-commits] r1807 - /branches/lennart/src/pulsecore/thread.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Sep 11 08:14:47 PDT 2007


Author: lennart
Date: Tue Sep 11 17:14:46 2007
New Revision: 1807

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1807&root=pulseaudio&view=rev
Log:
explcitly initialize tls memory to NULL

Modified:
    branches/lennart/src/pulsecore/thread.h

Modified: branches/lennart/src/pulsecore/thread.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/thread.h?rev=1807&root=pulseaudio&r1=1806&r2=1807&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/thread.h (original)
+++ branches/lennart/src/pulsecore/thread.h Tue Sep 11 17:14:46 2007
@@ -85,7 +85,7 @@
 /* An optimized version of the above that requires no dynamic
  * allocation if the compiler supports __thread */
 #define PA_STATIC_TLS_DECLARE_NO_FREE(name)                             \
-    static __thread void *name##_tls;                                   \
+    static __thread void *name##_tls = NULL;                            \
     static inline void* name##_tls_get(void) {                          \
         return name##_tls;                                              \
     }                                                                   \




More information about the pulseaudio-commits mailing list