From f184c6f06c8bd63390ecec3fbe290b087f995ea7 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 19 Apr 2017 16:59:54 +0000 Subject: load_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi. --- cmd-source-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-source-file.c') 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) { -- cgit v1.2.3