Check to see if arg is NULL before passing (#6094)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8133 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
8f2721804e
commit
0e8e832997
|
@ -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);
|
||||
|
|
Reference in New Issue