diff options
author | nicm <nicm> | 2017-04-19 16:59:54 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-04-19 16:59:54 +0000 |
commit | f184c6f06c8bd63390ecec3fbe290b087f995ea7 (patch) | |
tree | b4bcc467a68cfa440bd340ae358f217a4c5eae4b /cmd-source-file.c | |
parent | 53fde21bb85c37c35854069ec95377ecc86750ee (diff) | |
download | rtmux-f184c6f06c8bd63390ecec3fbe290b087f995ea7.tar.gz rtmux-f184c6f06c8bd63390ecec3fbe290b087f995ea7.tar.bz2 rtmux-f184c6f06c8bd63390ecec3fbe290b087f995ea7.zip |
load_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi.
Diffstat (limited to 'cmd-source-file.c')
-rw-r--r-- | cmd-source-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c index a367c7c2..0328089f 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -79,7 +79,7 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item) free(pattern); for (i = 0; i < (u_int)g.gl_pathc; i++) { - if (load_cfg(g.gl_pathv[i], c, item, quiet) != 0) + if (load_cfg(g.gl_pathv[i], c, item, quiet) < 0) retval = CMD_RETURN_ERROR; } if (cfg_finished) { |