mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
Environment variables in configuration file.
This commit is contained in:
6
cfg.c
6
cfg.c
@ -1,4 +1,4 @@
|
||||
/* $Id: cfg.c,v 1.12 2008-06-21 10:19:36 nicm Exp $ */
|
||||
/* $Id: cfg.c,v 1.13 2008-07-25 17:20:40 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -78,11 +78,13 @@ load_cfg(const char *path, char **cause)
|
||||
}
|
||||
n++;
|
||||
|
||||
if ((cmd = cmd_string_parse(buf, cause)) == NULL) {
|
||||
if (cmd_string_parse(buf, &cmd, cause) != 0) {
|
||||
if (*cause == NULL)
|
||||
continue;
|
||||
goto error;
|
||||
}
|
||||
if (cmd == NULL)
|
||||
continue;
|
||||
cfg_cause = NULL;
|
||||
|
||||
ctx.msgdata = NULL;
|
||||
|
Reference in New Issue
Block a user