Only check container count if it exists.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@302837 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.6
Russell Bryant 15 years ago
parent 90f6681ad4
commit 5537ae9930

@ -4787,7 +4787,7 @@ int __ast_manager_event_multichan(int category, const char *event, int chancount
struct ast_str *buf; struct ast_str *buf;
int i; int i;
if (!ao2_container_count(sessions) && AST_RWLIST_EMPTY(&manager_hooks)) { if (!(sessions && ao2_container_count(sessions)) && AST_RWLIST_EMPTY(&manager_hooks)) {
return 0; return 0;
} }

Loading…
Cancel
Save