Bug 152315 - wordcut-0.5.1b2-5: local variable used before set
Summary: wordcut-0.5.1b2-5: local variable used before set
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SuSE Linux 10.1
: P5 - None : Normal
Target Milestone: ---
Assignee: Mike Fabian
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-20 18:57 UTC by David Binderman
Modified: 2006-02-23 17:43 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
bugzilla-152315-locale-variable-used-before-set.patch (698 bytes, patch)
2006-02-23 17:40 UTC, Mike Fabian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.