From ba597da72e8a548403f2a86cbe864f6f8c087397 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 25 Jul 2008 17:20:40 +0000 Subject: Environment variables in configuration file. --- cfg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cfg.c') diff --git a/cfg.c b/cfg.c index 8a6729e5..44f516b7 100644 --- a/cfg.c +++ b/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 @@ -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; -- cgit