Bug 134186

Summary: rsaref-2.0-509: local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Philipp Thomas <pth>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2005-11-17 15:04:59 UTC
I just tried to compile package rsaref-2.0-509 with the GNU C compiler.

It said

../source/r_enhanc.c:890: warning: "status" is used uninitialized in this function

The source code is

    if (status)
      break;

Suggest initialise local variable "status" before first use.
Comment 1 David Binderman 2006-03-24 21:12:32 UTC
(In reply to comment #0)
> I just tried to compile package rsaref-2.0-509 with the GNU C compiler.

This has been in status "new" for over three months.

I would like to clarify if this bug will still be new when 10.1
hits the shops.

Comment 2 Philipp Thomas 2006-03-27 16:02:35 UTC
Sorry, this somehow fell through the cracks.

The variable *is* initialized in the 'for' loop preceding the code you state. But
it's only initialized as long as inputLen is greater then 32. I've just fixed it.