Bug 138090 - local variable used before set
Summary: local variable used before set
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: setools
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-04 16:14 UTC by David Binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2005-09-27 20:38:30 UTC


Attachments (Terms of Use)

Description David Binderman 2004-11-04 16:14:00 UTC
Description of problem:

I just tried to compile package setools-1.4.1-2 from 
Redhat Fedora Core 3 Test 3.

The compiler said

policy.c(1788): remark #592: variable "ptr" is used before its value
is set

The source code is

        memset(ptr, 0, sizeof(cln_item_t));

Suggest init ptr before first use.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2004-11-05 20:00:54 UTC
THis problem no longer exists in setools-1.5.1
Available in rawhide.


Note You need to log in before you can comment on or make changes to this bug.