Stop caring about empty commands, just treat as a null command.

This commit is contained in:
nicm
2021-08-21 17:25:32 +00:00
parent 68cacaec68
commit 5241dae87d
9 changed files with 16 additions and 30 deletions

View File

@ -2151,9 +2151,6 @@ server_client_dispatch_command(struct client *c, struct imsg *imsg)
pr = cmd_parse_from_arguments(argc, argv, NULL);
switch (pr->status) {
case CMD_PARSE_EMPTY:
cause = xstrdup("empty command");
goto error;
case CMD_PARSE_ERROR:
cause = pr->error;
goto error;