summaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-09-09 14:01:08 +0100
committerThomas Adam <thomas@xteddy.org>2015-09-09 14:01:08 +0100
commit5af2f68a2cab8b3703382e69d7b3fb38c2fe7e65 (patch)
tree16be8e9d5596960fcf4c2f0296fc8e82bd66c1b6 /cfg.c
parentfe536457cca384fdaa5fcf80236404cfaafc38f9 (diff)
parent67ee995cc1ec0a9ae2247dae6bdde54211be8c5a (diff)
Merge branch 'obsd-master'
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 9548f582..9657302b 100644
--- a/cfg.c
+++ b/cfg.c
@@ -97,7 +97,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. */