summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-21 17:25:32 +0000
committernicm <nicm>2021-08-21 17:25:32 +0000
commit5241dae87de88906dc5c1dc271a4f25522a22d4c (patch)
tree17be354eb3556ed62cfdc74f2a8e4ecfe6599a22 /options.c
parent68cacaec68ca8300e0ea439abdf9db16e74241bb (diff)
Stop caring about empty commands, just treat as a null command.
Diffstat (limited to 'options.c')
-rw-r--r--options.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/options.c b/options.c
index 23c83c07..e32db774 100644
--- a/options.c
+++ b/options.c
@@ -443,10 +443,6 @@ options_array_set(struct options_entry *o, u_int idx, const char *value,
if (OPTIONS_IS_COMMAND(o)) {
pr = cmd_parse_from_string(value, NULL);
switch (pr->status) {
- case CMD_PARSE_EMPTY:
- if (cause != NULL)
- *cause = xstrdup("empty command");
- return (-1);
case CMD_PARSE_ERROR:
if (cause != NULL)
*cause = pr->error;