[mythtv-commits] Ticket #11553: Patch for (potential) uninitalized variable num_lines in mythuitext.cpp

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


#11553: Patch for (potential) uninitalized variable num_lines in mythuitext.cpp
-------------------------------------------------+-------------------------
 Reporter:  Gary Buhrmaster <gary.buhrmaster@…>  |          Owner:  stuartm
     Type:  Patch - Bug Fix                      |         Status:  closed
 Priority:  minor                                |      Milestone:  unknown
Component:  MythTV - User Interface Library      |        Version:
 Severity:  medium                               |  Unspecified
 Keywords:                                       |     Resolution:  fixed
                                                 |  Ticket locked:  0
-------------------------------------------------+-------------------------
Changes (by Gary Buhrmaster <gary.buhrmaster@…>):

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


Comment:

 In [changeset:b1d6e4bef471c8cee39bdc5e644d4e8351f616e0/mythtv]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="b1d6e4bef471c8cee39bdc5e644d4e8351f616e0"
 Patch for (potential) uninitalized variable num_lines

 Static analysis indicates that there is a feasible
 code path in LayoutParagraphs (called in GetNarrowWidth)
 which will not result in calling Layout which will
 initialize the variable num_lines.  Initialize the
 variable num_lines just in case (and make the
 analyzer happy).
 (cherry picked from commit a5388fb30e8fce9b8875563d3b1382a2888fcc2c)

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

 Fixes #11553
 }}}

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


More information about the mythtv-commits mailing list