diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index fcc45c6e252..e0cdfaa33f5 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -755,6 +755,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;