From 540175d9c7d3ff1057b8ead46f4a773b2e8d887c Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson <creslin@digium.com> Date: Tue, 17 Jan 2006 18:20:33 +0000 Subject: [PATCH] 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 --- res/res_features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- GitLab