Opened 10 years ago

Closed 10 years ago

#6962 closed defect (fixed)

Make sure i is initialized in freesurround code

Reported by: Erik Hovland <erik@…> Owned by: paulh
Priority: trivial Milestone: 0.22
Component: MythTV - General Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

The variable i may be checked w/o being initialized in pathological cases. Initialize it to 0 when declared.

Attachments (2)

libs_libmythfreesurround-init-vars (1006 bytes) - added by Erik Hovland <erik@…> 10 years ago.
Initialize i
libs_libmythfreesurround-uninit-ctors (855 bytes) - added by Erik Hovland <erik@…> 10 years ago.
Initialize buffers in the ctor of the class

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by Erik Hovland <erik@…>

Initialize i

Changed 10 years ago by Erik Hovland <erik@…>

Initialize buffers in the ctor of the class

comment:1 Changed 10 years ago by Erik Hovland <erik@…>

My other freesurround patch is an initialization patch. So I am attaching it to this ticket.

comment:2 Changed 10 years ago by paulh

Milestone: unknown0.22
Owner: changed from Isaac Richards to paulh
Status: newassigned

comment:3 Changed 10 years ago by paulh

Resolution: fixed
Status: assignedclosed

(In [21711]) Initialise some variables in libmythfreesurround. Fixes #6962.

Note: See TracTickets for help on using tickets.