summaryrefslogtreecommitdiffstats
path: root/cmd-source-file.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-04-19 20:01:11 +0100
committerThomas Adam <thomas@xteddy.org>2017-04-19 20:01:11 +0100
commit3385159c947523aec9b436eb27b28b81ade76bb5 (patch)
tree57e0c77b8c1640a50a36b0de9e3824056695bb5b /cmd-source-file.c
parent5a551ac57f5f6ab9e4ea58752521583f00c8e555 (diff)
parentf184c6f06c8bd63390ecec3fbe290b087f995ea7 (diff)
Merge branch 'obsd-master'
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 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) {