summaryrefslogtreecommitdiff
path: root/netfs/ice/typeConverter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'netfs/ice/typeConverter.cpp')
-rw-r--r--netfs/ice/typeConverter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/netfs/ice/typeConverter.cpp b/netfs/ice/typeConverter.cpp
index 373877c..7619063 100644
--- a/netfs/ice/typeConverter.cpp
+++ b/netfs/ice/typeConverter.cpp
@@ -19,7 +19,7 @@ inline void safeAssign(T & t, const S & s)
struct stat
EntryTypeConverter::convert(const NetFS::Attr & a) const
{
- struct stat s;
+ struct stat s {};
s.st_dev = a.dev;
s.st_ino = a.inode;
s.st_mode = a.mode;
@@ -45,7 +45,7 @@ EntryTypeConverter::convert(const NetFS::Attr & a) const
struct statvfs
TypeConverter::convert(const NetFS::VFS & v) const
{
- struct statvfs vfs;
+ struct statvfs vfs {};
vfs.f_bsize = v.blockSize;
vfs.f_frsize = v.fragmentSize;
vfs.f_blocks = v.blocks;
@@ -63,7 +63,7 @@ TypeConverter::convert(const NetFS::VFS & v) const
NetFS::Attr
EntryTypeConverter::convert(const struct stat & s) const
{
- NetFS::Attr a;
+ NetFS::Attr a {};
a.dev = s.st_dev;
a.inode = s.st_ino;
a.mode = s.st_mode;
@@ -83,7 +83,7 @@ EntryTypeConverter::convert(const struct stat & s) const
NetFS::VFS
TypeConverter::convert(const struct statvfs & s) const
{
- NetFS::VFS t;
+ NetFS::VFS t {};
safeAssign(t.blockSize, s.f_bsize);
safeAssign(t.fragmentSize, s.f_frsize);
t.blocks = s.f_blocks;