Permalink
Browse files

Initialize member variables in MythSystemLegacyUnix ctor

Static analysis detected that some member variables
were not being initialized in the ctor.  They were
being initialized in the Fork method (later).  To
make static analysis happy, and avoid future errors,
initialize them.

Fixes coverity 1028697

Fixes #11629

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
  • Loading branch information...
garybuhrmaster authored and Paul Harrison committed Jul 13, 2013
1 parent 447097d commit 28020a10fdfa408ec6132f5be325ba2ad85b62d4
Showing with 6 additions and 1 deletion.
  1. +6 −1 mythtv/libs/libmythbase/mythsystemunix.cpp
@@ -570,10 +570,15 @@ void MythSystemLegacySignalManager::run(void)
******************************/
MythSystemLegacyUnix::MythSystemLegacyUnix(MythSystemLegacy *parent) :
MythSystemLegacyPrivate("MythSystemLegacyUnix")
MythSystemLegacyPrivate("MythSystemLegacyUnix"),
m_pid(0), m_timeout(0)
{
m_parent = parent;
m_stdpipe[0] = -1;
m_stdpipe[1] = -1;
m_stdpipe[2] = -1;
connect(this, SIGNAL(started()), m_parent, SIGNAL(started()));
connect(this, SIGNAL(finished()), m_parent, SIGNAL(finished()));
connect(this, SIGNAL(error(uint)), m_parent, SIGNAL(error(uint)));

0 comments on commit 28020a1

Please sign in to comment.