diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-26 03:02:06 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-26 03:02:06 +0000 |
commit | 566450e1c5198e19ffc2ff92994dafba299d7310 (patch) | |
tree | 93e255f277569e055c2abc6fcf3a85c5a6cd72ad /pbx.c | |
parent | 5655950ecf3175aabfba724be28f88e9d26387a9 (diff) |
minor optimizations
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6659 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1559,9 +1559,8 @@ 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 (!strstr(e->data,"${") && !strstr(e->data,"$[") && !strstr(e->data,"$(")) { + if (!strchr(e->data, '$') && !strstr(e->data,"${") && !strstr(e->data,"$[") && !strstr(e->data,"$(")) { ast_copy_string(passdata, e->data, datalen); - passdata[datalen-1] = '\0'; return; } |