diff options
author | nicm <nicm> | 2021-08-21 17:25:32 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-21 17:25:32 +0000 |
commit | 5241dae87de88906dc5c1dc271a4f25522a22d4c (patch) | |
tree | 17be354eb3556ed62cfdc74f2a8e4ecfe6599a22 /cfg.c | |
parent | 68cacaec68ca8300e0ea439abdf9db16e74241bb (diff) | |
download | rtmux-5241dae87de88906dc5c1dc271a4f25522a22d4c.tar.gz rtmux-5241dae87de88906dc5c1dc271a4f25522a22d4c.tar.bz2 rtmux-5241dae87de88906dc5c1dc271a4f25522a22d4c.zip |
Stop caring about empty commands, just treat as a null command.
Diffstat (limited to 'cfg.c')
-rw-r--r-- | cfg.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -125,8 +125,6 @@ load_cfg(const char *path, struct client *c, struct cmdq_item *item, int flags, pr = cmd_parse_from_file(f, &pi); fclose(f); - if (pr->status == CMD_PARSE_EMPTY) - return (0); if (pr->status == CMD_PARSE_ERROR) { cfg_add_cause("%s", pr->error); free(pr->error); @@ -179,8 +177,6 @@ load_cfg_from_buffer(const void *buf, size_t len, const char *path, pi.c = c; pr = cmd_parse_from_buffer(buf, len, &pi); - if (pr->status == CMD_PARSE_EMPTY) - return (0); if (pr->status == CMD_PARSE_ERROR) { cfg_add_cause("%s", pr->error); free(pr->error); |