diff options
author | Steve Murphy <murf@digium.com> | 2008-06-05 21:34:42 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2008-06-05 21:34:42 +0000 |
commit | d0384ab3aab5df04a6d8eb276c2216efeee4de66 (patch) | |
tree | d5f15877a58e7435b6ecdbd2fb3729139d3d0843 | |
parent | 9471b87d27bda1ec762c712f68489e88244b8fae (diff) |
a small fix for a crash that occurs when compiling AEL with global vars
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@120828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index bc006c994..343ed85df 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -7901,7 +7901,7 @@ int pbx_builtin_setvar_multiple(struct ast_channel *chan, void *vdata) pbx_builtin_setvar_helper(chan, pair.name, pair.value); if (strchr(pair.name, ' ')) ast_log(LOG_WARNING, "Please avoid unnecessary spaces on variables as it may lead to unexpected results ('%s' set to '%s').\n", pair.name, pair.value); - } else if (chan) { + } else if (!chan) { ast_log(LOG_WARNING, "MSet: ignoring entry '%s' with no '='\n", pair.name); } else { ast_log(LOG_WARNING, "MSet: ignoring entry '%s' with no '=' (in %s@%s:%d\n", pair.name, chan->exten, chan->context, chan->priority); |