Skip to content

Commit

Permalink
Fix uninitialized pointer in MainServer.
Browse files Browse the repository at this point in the history
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 8dfbc63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/programs/mythbackend/mainserver.cpp
Expand Up @@ -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"),
Expand Down

0 comments on commit 8dfbc63

Please sign in to comment.