Skip to content
Permalink
Browse files

Fix uninitialized pointer in MainServer.

It was possible for the constructor to return early and never
initialize metadatafactory.  Fixes Coverity 746875.
  • Loading branch information
gigem committed Jun 19, 2013
1 parent 01ddf54 commit 8dfbc63ab2d32c5e3630f08a88f6495397ffbe48
Showing with 1 addition and 0 deletions.
  1. +1 −0 mythtv/programs/mythbackend/mainserver.cpp
@@ -227,6 +227,7 @@ MainServer::MainServer(bool master, int port,
QMap<int, EncoderLink *> *tvList,
Scheduler *sched, AutoExpire *expirer) :
encoderList(tvList), mythserver(NULL),
metadatafactory(NULL),
masterFreeSpaceListUpdater(NULL),
masterServerReconnect(NULL),
masterServer(NULL), ismaster(master), threadPool("ProcessRequestPool"),

0 comments on commit 8dfbc63

Please sign in to comment.
You can’t perform that action at this time.