From 0e15df43c32e9ca427c95808f0d103f1cc0d5b6d Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 17 Sep 2014 09:35:15 +0200 Subject: [PATCH] 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 (cherry picked from commit 2c2b413ee0af2a151999fcf72f44745b0a9d4ab2) --- src/common/LogEntry.h | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5