summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-09-26 03:02:06 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-09-26 03:02:06 +0000
commitaae3bb3e48a21af9f5da5ae7fc4a9fd821417bbf (patch)
tree93e255f277569e055c2abc6fcf3a85c5a6cd72ad /pbx.c
parent9d63d731aa5002d77dbc45108969fbd6ba73b239 (diff)
minor optimizations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index 0bab9732a..db7e4822a 100755
--- a/pbx.c
+++ b/pbx.c
@@ -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;
}