Browse files

LoggingItem: Fix Coverity ID 746862 Uninitialized scalar field

In LoggingItem::LoggingItem(): A scalar field is not initialized
by the constructor
  • Loading branch information...
Paul Harrison
Paul Harrison committed Jun 20, 2013
1 parent f21e912 commit 7d5d1bdf4822b0b30f5037268bcb0fa987135705
Showing with 3 additions and 1 deletion.
  1. +3 −1 mythtv/libs/libmythbase/logging.cpp
@@ -140,10 +140,12 @@ void loggingGetTimeStamp(qlonglong *epoch, uint *usec)
LoggingItem::LoggingItem() :
ReferenceCounter("LoggingItem", false),
m_pid(-1), m_tid(-1), m_threadId(-1), m_usec(0), m_line(0),
m_type(kMessage), m_level((LogLevel_t)LOG_INFO), m_facility(0),
m_type(kMessage), m_level((LogLevel_t)LOG_INFO), m_facility(0), m_epoch(0),
m_file(NULL), m_function(NULL), m_threadName(NULL), m_appName(NULL),
m_table(NULL), m_logFile(NULL)
LoggingItem::LoggingItem(const char *_file, const char *_function,

0 comments on commit 7d5d1bd

Please sign in to comment.