Opened 11 years ago
Closed 11 years ago
Last modified 11 years ago
#11553 closed Patch - Bug Fix (fixed)
Patch for (potential) uninitalized variable num_lines in mythuitext.cpp
Reported by: | 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)
Note: See
TracTickets for help on using
tickets.
In b1d6e4bef471c8cee39bdc5e644d4e8351f616e0/mythtv: