hoid.hash is uninitialized, and should not be used to
initialize hoid.hash.
CID 717200: Uninitialized scalar variable (UNINIT)At (9): Using uninitialized
value "hoid.hash" when calling "hobject_t::hobject_t(object_t, std::string
const &, snapid_t, uint64_t, int64_t)".
Signed-off-by: Samuel Just <sam.just@inktank.com>
::decode(soid, bl);
::decode(oloc, bl);
if (struct_v == 6) {
- hobject_t hoid(soid.oid, oloc.key, soid.snap, hoid.hash, 0);
+ hobject_t hoid(soid.oid, oloc.key, soid.snap, soid.hash, 0);
soid = hoid;
}
}