From 5c6be52e39dd853543c6796ef9bf602b68c640cf Mon Sep 17 00:00:00 2001 From: Gary Buhrmaster Date: Mon, 1 Jul 2013 00:40:15 +0000 Subject: [PATCH] Initialize m_readbuf in ctor In commit e2ec92f129f32c42442cf5c46ef92da0e7c90d20 m_readbuf was initialized in mythsystemunix.cpp based on cppcheck warning. Do the same in mythsystemwindows.cpp for consistency (and because if static analysis was run on the windows source, it would likely report the same issue). Signed-off-by: Gary Buhrmaster --- mythtv/libs/libmythbase/mythsystemwindows.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mythtv/libs/libmythbase/mythsystemwindows.cpp b/mythtv/libs/libmythbase/mythsystemwindows.cpp index 0b2ad9263da..279ce5d9107 100644 --- a/mythtv/libs/libmythbase/mythsystemwindows.cpp +++ b/mythtv/libs/libmythbase/mythsystemwindows.cpp @@ -81,6 +81,7 @@ MythSystemLegacyIOHandler::MythSystemLegacyIOHandler(bool read) : m_pWaitLock(), m_pWait(), m_pLock(), m_pMap(PMap_t()), m_read(read) { + m_readbuf[0] = '\0'; } void MythSystemLegacyIOHandler::run(void)