mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-08 20:12:56 -04:00
fix: ensure a valid empty JSON object is created
This commit is contained in:
parent
5a5d44c59a
commit
346a04439b
@ -1147,7 +1147,7 @@ template <typename LoggerPolicy>
|
|||||||
nlohmann::json
|
nlohmann::json
|
||||||
metadata_<LoggerPolicy>::info_as_json(fsinfo_options const& opts,
|
metadata_<LoggerPolicy>::info_as_json(fsinfo_options const& opts,
|
||||||
filesystem_info const* fsinfo) const {
|
filesystem_info const* fsinfo) const {
|
||||||
nlohmann::json info;
|
auto info = nlohmann::json::object();
|
||||||
vfs_stat stbuf;
|
vfs_stat stbuf;
|
||||||
statvfs(&stbuf);
|
statvfs(&stbuf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user