fix: ensure a valid empty JSON object is created

This commit is contained in:
Marcus Holland-Moritz 2024-08-24 22:52:18 +02:00
parent 5a5d44c59a
commit 346a04439b

View File

@ -1147,7 +1147,7 @@ template <typename LoggerPolicy>
nlohmann::json
metadata_<LoggerPolicy>::info_as_json(fsinfo_options const& opts,
filesystem_info const* fsinfo) const {
nlohmann::json info;
auto info = nlohmann::json::object();
vfs_stat stbuf;
statvfs(&stbuf);