dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 50266 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50266 | file | 2007-01-09 22:51:29 -0500 (Tue, 09 Jan 2007) | 2 lines

Ensure data's existence before trying to access it. (issue #8774 reported by rcourtna)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50267 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
file 2007-01-10 03:53:30 +00:00
parent 96b4b4cec6
commit abf42442c7
1 changed files with 1 additions and 1 deletions

View File

@ -1631,7 +1631,7 @@ static void pbx_substitute_variables(char *passdata, int datalen, struct ast_cha
memset(passdata, 0, datalen);
/* No variables or expressions in e->data, so why scan it? */
if (!strchr(e->data, '$') && !strstr(e->data,"${") && !strstr(e->data,"$[") && !strstr(e->data,"$(")) {
if (e->data && !strchr(e->data, '$') && !strstr(e->data,"${") && !strstr(e->data,"$[") && !strstr(e->data,"$(")) {
ast_copy_string(passdata, e->data, datalen);
return;
}