From: Russell Bryant Date: Wed, 16 Jul 2008 15:08:22 +0000 (+0000) Subject: Add missing terminator to ast_event_subscribe to fix a crash. X-Git-Tag: 1.6.2.0-beta1~1672 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e2b6eea40c6c9b37625c1e90cf453a2366d97fd;p=thirdparty%2Fasterisk.git Add missing terminator to ast_event_subscribe to fix a crash. (from rev 131206 in the 1.6.0 branch) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@131207 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_agent.c b/channels/chan_agent.c index e5e4ebbe56..7d62718b40 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -2488,7 +2488,7 @@ static int load_module(void) /* Dialplan Functions */ ast_custom_function_register(&agent_function); - agent_devicestate_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE, agent_devicestate_cb, NULL); + agent_devicestate_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE, agent_devicestate_cb, NULL, AST_EVENT_IE_END); return AST_MODULE_LOAD_SUCCESS; }