aboutsummaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-27 22:29:57 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-27 22:29:57 +0000
commit60f2c50380a4a7cc8acc9267026c1eb9b1d85799 (patch)
treedee8000296db225e7ba779de729fd988e64013a6 /app.c
parentd8fe2161d79f69c9f852f01a2a533e576310b3fa (diff)
Fix app bug, update skel example, add skel to makefile as option (bug #3869)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5277 f38db490-d61c-443f-a65b-d21fe96a405b
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 0ea51f8a6..9d70e5385 100755
--- a/app.c
+++ b/app.c
@@ -1489,7 +1489,8 @@ int ast_parseoptions(const struct ast_option *options, struct ast_flags *flags,
ast_log(LOG_WARNING, "Missing closing parenthesis for argument '%c'\n", curarg);
res = -1;
}
- }
+ } else if (argloc)
+ args[argloc - 1] = NULL;
}
return res;
}