From 5241dae87de88906dc5c1dc271a4f25522a22d4c Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 21 Aug 2021 17:25:32 +0000 Subject: Stop caring about empty commands, just treat as a null command. --- options.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'options.c') 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; -- cgit