forked from Mirrors/freeswitch
FS-11785: [core] help clang static analyzer understand this macro construct
This commit is contained in:
parent
67578abc79
commit
3870c0fc2a
@ -213,6 +213,7 @@ extern switch_io_event_hooks_t switch_core_session_get_event_hooks(switch_core_s
|
|||||||
if (! session->event_hooks._NAME ) { \
|
if (! session->event_hooks._NAME ) { \
|
||||||
session->event_hooks._NAME = hook; \
|
session->event_hooks._NAME = hook; \
|
||||||
} else { \
|
} else { \
|
||||||
|
switch_assert(ptr); \
|
||||||
ptr->next = hook; \
|
ptr->next = hook; \
|
||||||
} \
|
} \
|
||||||
return SWITCH_STATUS_SUCCESS; \
|
return SWITCH_STATUS_SUCCESS; \
|
||||||
|
Loading…
Reference in New Issue
Block a user