summaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authornicm <nicm>2015-09-09 12:09:21 +0000
committernicm <nicm>2015-09-09 12:09:21 +0000
commit67ee995cc1ec0a9ae2247dae6bdde54211be8c5a (patch)
treeb5af25282909d771d91a40076ce9317d7786abb9 /cfg.c
parentaceae73b9a401c0b124a3534079e9c0d998f0dbd (diff)
No need to keep global options around for client which doesn't use them.
Diffstat (limited to 'cfg.c')
-rw-r--r--cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.c b/cfg.c
index ecb38fc0..2f457e6b 100644
--- a/cfg.c
+++ b/cfg.c
@@ -98,7 +98,7 @@ load_cfg(const char *path, struct cmd_q *cmdq, char **cause)
}
found = 0;
- while ((buf = fparseln(f, NULL, &line, delim, 0))) {
+ while ((buf = fparseln(f, NULL, &line, delim, 0)) != NULL) {
log_debug("%s: %s", path, buf);
/* Skip empty lines. */