Fixes the Coverity Scan Report:
CID 717245: Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member dnv is not initialized in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member state is not initialized in this constructor nor in any functions that it calls.
Signed-off-by: Jos Collin <jcollin@redhat.com>
typedef compact_map<snapid_t, old_inode_t> old_inodes_t;
string dn; // dentry
snapid_t dnfirst, dnlast;
- version_t dnv;
+ version_t dnv{0};
inode_t inode; // if it's not
fragtree_t dirfragtree;
map<string,bufferptr> xattrs;
string symlink;
snapid_t oldest_snap;
bufferlist snapbl;
- __u8 state;
+ __u8 state{0};
old_inodes_t old_inodes;
fullbit(const fullbit& o);