From: Jos Collin Date: Mon, 12 Jun 2017 03:05:12 +0000 (+0530) Subject: common: initialize _hash in LogEntryKey() X-Git-Tag: v12.1.0~176^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15615%2Fhead;p=ceph.git common: initialize _hash in LogEntryKey() Fixed: ** CID 717210: Uninitialized members (UNINIT_CTOR) ceph/src/common/LogEntry.h: 70 in LogEntryKey::LogEntryKey()() Non-static class member "_hash" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Jos Collin --- diff --git a/src/common/LogEntry.h b/src/common/LogEntry.h index 7d6446a66ea4..4feea3d419fc 100644 --- a/src/common/LogEntry.h +++ b/src/common/LogEntry.h @@ -55,7 +55,7 @@ string clog_type_to_string(clog_type t); struct LogEntryKey { private: - uint64_t _hash; + uint64_t _hash = 0; void _calc_hash() { hash h;