Skip to content

Commit

Permalink
Initialize chanid in mythtranscode
Browse files Browse the repository at this point in the history
Static analysis (scan-build) detects that the variable
chanid could be used without initialization.  This is
actually a false positive, since the use is protected
by the found_chanid variable, but initializing the
variable should be benign, and eliminates that static
analysis detected issue.
(cherry picked from commit 49617bc)

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>

Fixes #11571
  • Loading branch information
garybuhrmaster authored and stuartm committed Jun 4, 2013
1 parent b44f38e commit 4fdd143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/programs/mythtranscode/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ namespace

int main(int argc, char *argv[])
{
uint chanid;
uint chanid = 0;
QDateTime starttime;
QString infile, outfile;
QString profilename = QString("autodetect");
Expand Down

0 comments on commit 4fdd143

Please sign in to comment.