mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
explcitly initialize tls memory to NULL
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1807 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
9c523e0607
commit
abb18d9c4c
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ void *pa_tls_set(pa_tls *t, void *userdata);
|
||||||
/* An optimized version of the above that requires no dynamic
|
/* An optimized version of the above that requires no dynamic
|
||||||
* allocation if the compiler supports __thread */
|
* allocation if the compiler supports __thread */
|
||||||
#define PA_STATIC_TLS_DECLARE_NO_FREE(name) \
|
#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) { \
|
static inline void* name##_tls_get(void) { \
|
||||||
return name##_tls; \
|
return name##_tls; \
|
||||||
} \
|
} \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue