From: Matthew Fredrickson Date: Tue, 17 Jan 2006 18:20:33 +0000 (+0000) Subject: Check to see if arg is NULL before passing (#6094) X-Git-Tag: 1.4.0-beta1~2913 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=540175d9c7d3ff1057b8ead46f4a773b2e8d887c;p=thirdparty%2Fasterisk.git Check to see if arg is NULL before passing (#6094) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8133 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_features.c b/res/res_features.c index 1ffa1aef42..0f8f5d57ce 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -1272,7 +1272,7 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast src = chan; else if ((monitor_exec = pbx_builtin_getvar_helper(peer, "AUTO_MONITOR"))) src = peer; - if (src) { + if (monitor_app && src) { char *tmp = ast_strdupa(monitor_exec); if (tmp) { pbx_exec(src, monitor_app, tmp, 1);