summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-09-11 15:14:46 +0000
committerLennart Poettering <lennart@poettering.net>2007-09-11 15:14:46 +0000
commitabb18d9c4c684c8513bc1a8d897dd04fc82ed1e7 (patch)
tree3e41ac300328f15188b064e0038e75120877b419
parent9c523e060749d1a762c264025a653803a246894e (diff)
explcitly initialize tls memory to NULL
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1807 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/pulsecore/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/thread.h b/src/pulsecore/thread.h
index 4e5425d6..4a2b1bb8 100644
--- a/src/pulsecore/thread.h
+++ b/src/pulsecore/thread.h
@@ -85,7 +85,7 @@ void *pa_tls_set(pa_tls *t, void *userdata);
/* 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; \
} \