Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#11552 closed Patch - Bug Fix (fixed)

Patch for static analysis detected (potential) uninitialized variable usage in mythcommflag

Reported by: Gary Buhrmaster <gary.buhrmaster@…> Owned by: cpinkham
Priority: minor Milestone: 0.27
Component: MythTV - Mythcommflag Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Static analysis (scan-build) indicated that there is a feasible code path such that the variable currentFrameNumber could be used before assigning it a value. This patch initializes the variable to 0 at declaration.

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

Change History (2)

comment:1 Changed 12 years ago by Gary Buhrmaster <gary.buhrmaster@…>

Resolution: fixed
Status: newclosed

In c6ffdf44acb5238d7a1fe1a0b9713ea98e8b8159/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:2 Changed 12 years ago by paulh

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