load_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi.

pull/865/head
nicm 2017-04-19 16:59:54 +00:00
parent 53fde21bb8
commit f184c6f06c
1 changed files with 1 additions and 1 deletions

View File

@ -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) {