From 915906dd56bc71eaa534500df7e5efc02848344c Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Mon, 12 Jun 2017 08:35:12 +0530 Subject: [PATCH] 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 --- src/common/LogEntry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/LogEntry.h b/src/common/LogEntry.h index 7d6446a66ea45..4feea3d419fc7 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; -- 2.39.5