mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 15:28:50 +00:00
load_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi.
This commit is contained in:
parent
b946bf43f5
commit
b087483538
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user