dect
/
asterisk
Archived
13
0
Fork 0

a small fix for a crash that occurs when compiling AEL with global vars

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120828 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
murf 2008-06-05 21:34:42 +00:00
parent 13366a3a41
commit 92a68fd2a8
1 changed files with 1 additions and 1 deletions

View File

@ -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);