diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-07-25 17:20:40 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-07-25 17:20:40 +0000 |
commit | ba597da72e8a548403f2a86cbe864f6f8c087397 (patch) | |
tree | 2c40dc91a642bc993036bc4c6b2a0b062763f980 /cfg.c | |
parent | 546838ee6567d5fde03571286199068d5ec9b608 (diff) |
Environment variables in configuration file.
Diffstat (limited to 'cfg.c')
-rw-r--r-- | cfg.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |