diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 9fb0395714..fbe8103b43 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -763,6 +763,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;