[mythtv-commits] Ticket #11571: Patch to initialize chanid in mythtranscode (static analysis false positive)

MythTV noreply at mythtv.org
Tue Jun 4 18:53:28 UTC 2013


#11571: Patch to initialize chanid in mythtranscode (static analysis false
positive)
-------------------------------------+-------------------------------------
 Reporter:  Gary Buhrmaster          |          Owner:  Gary Buhrmaster
  <gary.buhrmaster@…>                |  <gary.buhrmaster@…>
     Type:  Patch - Bug Fix          |         Status:  closed
 Priority:  trivial                  |      Milestone:  unknown
Component:  MythTV - Mythtranscode   |        Version:  Master Head
 Severity:  low                      |     Resolution:  fixed
 Keywords:                           |  Ticket locked:  0
-------------------------------------+-------------------------------------
Changes (by Gary Buhrmaster <gary.buhrmaster@…>):

 * owner:   => Gary Buhrmaster <gary.buhrmaster@…>
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:4fdd1432684c070e45bbd7c889e876602c57a98d/mythtv]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="4fdd1432684c070e45bbd7c889e876602c57a98d"
 Initialize chanid in mythtranscode

 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 49617bc0c174be8b58e37ded693aa8d037ba7975)

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

 Fixes #11571
 }}}

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/11571#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list