diff options
author | nicm <nicm> | 2017-04-19 16:59:54 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-04-19 22:19:22 +0100 |
commit | b08748353867780e710734e75ad6772911901cd4 (patch) | |
tree | 3f564ff7c883a4586aa889f0eb42fcf067038f1a /cmd-source-file.c | |
parent | b946bf43f54e779c014ab47ef4b5e0410ed35d83 (diff) | |
download | rtmux-b08748353867780e710734e75ad6772911901cd4.tar.gz rtmux-b08748353867780e710734e75ad6772911901cd4.tar.bz2 rtmux-b08748353867780e710734e75ad6772911901cd4.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 db6b4caa..e96af5f1 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -78,7 +78,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) { |