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
This commit is contained in:
parent
859f1fa009
commit
540175d9c7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue