Bug 152315

Summary: wordcut-0.5.1b2-5: local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Mike Fabian <mfabian>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: bugzilla-152315-locale-variable-used-before-set.patch

Description David Binderman 2006-02-20 18:57:49 UTC
I just tried to compile package wordcut-0.5.1b2-5 with the Intel C compiler.

It said

wordcut_dict_dump.c(11): warning #592: variable "size" is used before its value is set

The source code is

    uint8_t header=data[p],size;
    int i;


    printf ("!!! p=%d header=%d size=%d\n",p,header,size);

Suggest initialise local variable "size" before first use.
Comment 1 Mike Fabian 2006-02-23 17:36:56 UTC
Thank you. Fixed in STABLE.
-------------------------------------------------------------------
Thu Feb 23 18:27:00 CET 2006 - mfabian@suse.de

- Bugzilla #152315: "local variable used before set".

-------------------------------------------------------------------
Comment 2 Mike Fabian 2006-02-23 17:40:07 UTC
Created attachment 70023 [details]
bugzilla-152315-locale-variable-used-before-set.patch

The patch I used.
Comment 3 Mike Fabian 2006-02-23 17:43:25 UTC
Reported upstream.