diff options
author | Corey Farrell <git@cfware.com> | 2015-04-17 17:19:24 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2015-04-17 16:30:13 -0500 |
commit | c1d44ff0430dda6241effc775a84c9434e2fc1ba (patch) | |
tree | 325bcf18c230bbcefd93ad1e45a0a5b35bd1824f /include/asterisk/vector.h | |
parent | 8435a0cdff848f77ff55e709a393ea96635e5b19 (diff) |
Fix issue with AST_THREADSTORAGE_RAW when DEBUG_THREADLOCALS is enabled.
When DEBUG_THREADLOCALS is enabled it causes the threadlocal cleanup to be
called as a function. This causes a compile error with raw threadstorage as
it uses NULL for cleanup. This fix uses a macro that provides NULL when
DEBUG_THREADLOCALS is disabled, and replaces the call to "c_cleanup(data);"
with "{};" when DEBUG_THREADLOCALS is enabled.
ASTERISK-24975 #close
Reported by: Ashley Sanders
Change-Id: I3ef7428ee402816d9fcefa1b3b95830c00d5c402
Diffstat (limited to 'include/asterisk/vector.h')
0 files changed, 0 insertions, 0 deletions