diff options
author | nicm <nicm> | 2017-01-15 22:00:56 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-01-15 22:00:56 +0000 |
commit | 52847a951802fda7a3ce36cdac77c34914b0ccca (patch) | |
tree | 7e5ad465e719d32f2a7d9a7c3469dec6d12448a4 /cfg.c | |
parent | 30548461439f02ed8327f96748035685a1a26ace (diff) | |
download | rtmux-52847a951802fda7a3ce36cdac77c34914b0ccca.tar.gz rtmux-52847a951802fda7a3ce36cdac77c34914b0ccca.tar.bz2 rtmux-52847a951802fda7a3ce36cdac77c34914b0ccca.zip |
It is silly for cmd_list_parse to return an integer error when it could
just return NULL.
Diffstat (limited to 'cfg.c')
-rw-r--r-- | cfg.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -141,7 +141,8 @@ load_cfg(const char *path, struct client *c, struct cmdq_item *item, int quiet) if (condition == -1) continue; - if (cmd_string_parse(p, &cmdlist, path, line, &cause1) != 0) { + cmdlist = cmd_string_parse(p, path, line, &cause1); + if (cmdlist == NULL) { free(buf); if (cause1 == NULL) continue; |