summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-04-19 16:59:55 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-04-19 16:59:55 +0000
commit03bf23f5d3467eed039d2a4ac718b7b91371fdcd (patch)
tree9b8f7bdf937c0b6420d5926578ca0149d1579187 /usr.bin
parentc38285a552d3392d3b452a107f1a485f1f9a0e64 (diff)
load_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/cmd-source-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-source-file.c b/usr.bin/tmux/cmd-source-file.c
index b497f860348..609866eec37 100644
--- a/usr.bin/tmux/cmd-source-file.c
+++ b/usr.bin/tmux/cmd-source-file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-source-file.c,v 1.34 2017/02/14 18:13:05 nicm Exp $ */
+/* $OpenBSD: cmd-source-file.c,v 1.35 2017/04/19 16:59:54 nicm Exp $ */
/*
* Copyright (c) 2008 Tiago Cunha <me@tiagocunha.org>
@@ -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) {