aboutsummaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'app.c')
-rwxr-xr-xapp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.c b/app.c
index bcb5c2259..ea83601c2 100755
--- a/app.c
+++ b/app.c
@@ -1544,7 +1544,8 @@ int ast_app_parse_options(const struct ast_app_option *options, struct ast_flags
if (*s == '(') {
/* Has argument */
arg = ++s;
- while (*s && (*s++ != ')'));
+ while (*s && (*s != ')'))
+ s++;
if (*s) {
if (argloc)
args[argloc - 1] = arg;