From: Danny Al-Gaaf Date: Wed, 17 Sep 2014 07:35:15 +0000 (+0200) Subject: LogEntry.h: init LogEntry::seq with 0 X-Git-Tag: v0.88~166^2~8 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2c2b413ee0af2a151999fcf72f44745b0a9d4ab2;p=ceph.git LogEntry.h: init LogEntry::seq with 0 CID 1238904 (#1 of 1): Uninitialized scalar variable (UNINIT) uninit_use_in_call: Using uninitialized value e.seq when calling log_to_syslog. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/common/LogEntry.h b/src/common/LogEntry.h index 293afe41bfc7c..7329595fd718b 100644 --- a/src/common/LogEntry.h +++ b/src/common/LogEntry.h @@ -75,6 +75,8 @@ struct LogEntry { string msg; string channel; + LogEntry() : seq(0) {} + LogEntryKey key() const { return LogEntryKey(who, stamp, seq); } void log_to_syslog(string level, string facility);