aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-26 03:02:06 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-26 03:02:06 +0000
commit566450e1c5198e19ffc2ff92994dafba299d7310 (patch)
tree93e255f277569e055c2abc6fcf3a85c5a6cd72ad /pbx.c
parent5655950ecf3175aabfba724be28f88e9d26387a9 (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-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;
}