X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=app.c;h=9d70e5385631cc440bcc072048e5257d3776c6c6;hp=0ea51f8a69e35d3cffc7664a8a88d4d3a4a74f58;hb=b0b916c16c0e2bdd2e46b3b229e92260519a50fd;hpb=03da4fbf3b6931824cbe2cd60d09527fc3bc4395 diff --git a/app.c b/app.c index 0ea51f8..9d70e53 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; }