summaryrefslogtreecommitdiffstats
path: root/cmd-source-file.c
diff options
context:
space:
mode:
authornicm <nicm>2017-04-19 16:59:54 +0000
committernicm <nicm>2017-04-19 16:59:54 +0000
commitf184c6f06c8bd63390ecec3fbe290b087f995ea7 (patch)
treeb4bcc467a68cfa440bd340ae358f217a4c5eae4b /cmd-source-file.c
parent53fde21bb85c37c35854069ec95377ecc86750ee (diff)
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.c2
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) {