[Bug 219048] New: xjdic-2.4-126: local variable used before set
https://bugzilla.novell.com/show_bug.cgi?id=219048 Summary: xjdic-2.4-126: local variable used before set Product: openSUSE 10.2 Version: Beta 2 Platform: All OS/Version: SuSE Linux 10.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de I just tried to compile package xjdic-2.4-126 with the GNU C compiler. It said xjdfrontend.c:1416: warning: 'zz' is used uninitialized in this function The source code is xjdserver (XJ_FIND, DicNum, zz, srchlen, fbuff, &xjresp, &respos, &roff, &rlen, repstr, &DicLoc); Suggest initialise local variable "zz" before first use. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=219048 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mfabian@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=219048 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=219048 ------- Comment #1 from mfabian@novell.com 2007-01-17 07:40 MST ------- Created an attachment (id=113388) --> (https://bugzilla.novell.com/attachment.cgi?id=113388&action=view) xjdic.patch xjdic.patch slightly edited to fix this bug: ++++++ xjdic.patch ++++++ --- /var/tmp/diff_new_pack.o27632/_old 2007-01-17 15:40:06.000000000 +0100 +++ /var/tmp/diff_new_pack.o27632/_new 2007-01-17 15:40:06.000000000 +0100 @@ -320,7 +320,7 @@ int slk,slen,slenx,i,srchlen,srchlenok; unsigned int khi,klo,cc; - unsigned long zz,bshit[20]; -+ uint32_t zz,bshit[20]; ++ uint32_t zz = 0, bshit[20]; unsigned char *kptr,*kptr2, k1,k2,kanj1,kanj2,kanj3; int FiltOK; unsigned char vlast[11],temp[11],ops[80]; -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=219048 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #2 from mfabian@novell.com 2007-01-17 07:43 MST ------- Fixed package submitted to STABLE and to the openSUSE build service. Closing as FIXED. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com