summaryrefslogtreecommitdiffstats
path: root/src/shared/conf-parser.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/shared/conf-parser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
index 8c5a4a7013..eaa8a5f11c 100644
--- a/src/shared/conf-parser.c
+++ b/src/shared/conf-parser.c
@@ -749,6 +749,10 @@ int config_get_stats_by_path(
return -errno;
}
+ /* Skipping an empty file. */
+ if (null_or_empty(&st))
+ continue;
+
r = hashmap_put_stats_by_path(&stats_by_path, *f, &st);
if (r < 0)
return r;