aboutsummaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index 4eaf717..eccb4c8 100644
--- a/src/log.c
+++ b/src/log.c
@@ -96,8 +96,9 @@ log_init(Log *log)
if (file == NULL)
return;
- while (fgets(buff, BUFF_SIZE, file) != NULL
- && buff[0] != '#') {
+ while (fgets(buff, BUFF_SIZE, file) != NULL) {
+ /* Skip commented lines (very spartan comment) */
+ if (buff[0] == '#') continue;
sscanf(buff, "%[^=]=%s", conf_key, conf_value);
log->level = log_get_level(log->tag, conf_key, conf_value);