Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#11553 closed Patch - Bug Fix (fixed)

Patch for (potential) uninitalized variable num_lines in mythuitext.cpp

Reported by: Gary Buhrmaster <gary.buhrmaster@…> Owned by: stuartm
Priority: minor Milestone: 0.27
Component: MythTV - User Interface Library Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Static analysis (scan-build) 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).

https://github.com/garybuhrmaster/mythtv/commit/a5388fb30e8fce9b8875563d3b1382a2888fcc2c

Change History (2)

comment:1 by Gary Buhrmaster <gary.buhrmaster@…>, 13 years ago

Resolution: fixed
Status: newclosed

In b1d6e4bef471c8cee39bdc5e644d4e8351f616e0/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:2 by paulh, 12 years ago

Milestone: unknown0.27
Note: See TracTickets for help on using tickets.