Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#11580 closed Patch - Bug Fix (fixed)

Patch to eliminate (logically) dead code in decoderbase.cpp - fixes coverity 700308

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


Static analysis (coverity) detected logically dead code in decoderbase.cpp, where selTrack would never be less than zero. Commit ea554c9 assigned selTrack the value 0 in the block previously, make this check dead.

Fixes coverity 700308


Change History (3)

comment:1 Changed 8 years ago by stuartm

Milestone: unknown0.27
Owner: set to Jim Stichnoth
Status: newassigned

comment:2 Changed 8 years ago by Gary Buhrmaster <gary.buhrmaster@…>

Resolution: fixed
Status: assignedclosed

In bae00573e4882b5f7a3f9480279434008690f23c/mythtv:

Eliminate (logically) dead code

After commit [ea554c9c] selTrack will never have the value -1
(it is assigned 0 in the block previous if it had that value).
Remove the (redundant) checks.

Fixes coverity 700308.
Fixes #11580

comment:3 Changed 8 years ago by Karl Egly

Owner: changed from Jim Stichnoth to Karl Egly
Type: Bug Report - GeneralPatch - Bug Fix
Note: See TracTickets for help on using tickets.