aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/app.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/main/app.c b/main/app.c
index fd3de0d9b..d59f1d1cc 100644
--- a/main/app.c
+++ b/main/app.c
@@ -1408,11 +1408,7 @@ int ast_app_parse_options(const struct ast_app_option *options, struct ast_flags
break;
}
} else if (argloc) {
- args[argloc - 1] = NULL;
- }
- if (argloc && ast_strlen_zero(args[argloc - 1])) {
- ast_log(LOG_WARNING, "Argument supplied for option '%c' was empty, option ignored.\n", curarg);
- continue;
+ args[argloc - 1] = "";
}
ast_set_flag(flags, options[curarg].flag);
}