Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 11 months ago

Closed 11 months ago

Last modified 10 months ago

#11571 closed Patch - Bug Fix (fixed)

Patch to initialize chanid in mythtranscode (static analysis false positive)

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

Description

Static analysis (scan-build) detects that the variable chanid could be used without initialization. This appears to actually be a false positive, since the use is protected by the found_chanid variable, but initializing the variable should be benign, and closes the scan-build static analysis issue.

Patch: https://github.com/garybuhrmaster/mythtv/commit/49617bc0c174be8b58e37ded693aa8d037ba7975

Attachments (0)

Change History (2)

comment:1 Changed 11 months ago by Gary Buhrmaster <gary.buhrmaster@…>

  • Owner set to Gary Buhrmaster <gary.buhrmaster@…>
  • Resolution set to fixed
  • Status changed from new to closed

In 4fdd1432684c070e45bbd7c889e876602c57a98d/mythtv:

Initialize chanid in mythtranscode

Static analysis (scan-build) detects that the variable
chanid could be used without initialization. This is
actually a false positive, since the use is protected
by the found_chanid variable, but initializing the
variable should be benign, and eliminates that static
analysis detected issue.
(cherry picked from commit 49617bc0c174be8b58e37ded693aa8d037ba7975)

Signed-off-by: Stuart Morgan <smorgan@…>

Fixes #11571

comment:2 Changed 10 months ago by paulh

  • Milestone changed from unknown to 0.27

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.