[mythtv-commits] Ticket #11552: Patch for static analysis detected (potential) uninitialized variable usage in mythcommflag

MythTV noreply at mythtv.org
Tue Jun 4 21:23:45 UTC 2013


#11552: Patch for static analysis detected (potential) uninitialized variable usage
in mythcommflag
-------------------------------------------------+-------------------------
 Reporter:  Gary Buhrmaster <gary.buhrmaster@…>  |          Owner:
     Type:  Patch - Bug Fix                      |  cpinkham
 Priority:  minor                                |         Status:  closed
Component:  MythTV - Mythcommflag                |      Milestone:  unknown
 Severity:  medium                               |        Version:  Master
 Keywords:                                       |  Head
                                                 |     Resolution:  fixed
                                                 |  Ticket locked:  0
-------------------------------------------------+-------------------------
Changes (by Gary Buhrmaster <gary.buhrmaster@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:c6ffdf44acb5238d7a1fe1a0b9713ea98e8b8159/mythtv]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="c6ffdf44acb5238d7a1fe1a0b9713ea98e8b8159"
 Fix static analysis detected use without assignment

 In ClassicCommDetector.cpp, static analysis indicates that
 the variable currentFrameNumber could be used without
 previously assigning it a value if certain code feasible
 code paths are taken.  Assign it the value 0 at declaration.
 (cherry picked from commit d2a021c29cf7d8bb4c13dd340654e61b4a16c8da)

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

 Fixes #11552
 }}}

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


More information about the mythtv-commits mailing list