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 committed by Nicholas Marriott
parent b946bf43f5
commit b087483538
1 changed files with 1 additions and 1 deletions

View File

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