Mailinglist Archive: opensuse-bugs (8045 mails)

< Previous Next >
[Bug 231195] New: hk_classes-0.8.2-29: local variable used before set
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 31 Dec 2006 06:30:41 -0700 (MST)
  • Message-id: <bug-231195-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=231195

Summary: hk_classes-0.8.2-29: local variable used before set
Product: openSUSE 10.3
Version: unspecified
Platform: All
OS/Version: SuSE Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx


I just tried to compile package hk_classes-0.8.2-29
with the Intel C compiler.

The compiler said

pxlib/paradox.c(2001): warning #592: variable "data" is used before its value
is set

The source code is

char *data;
if(0 < PX_get_data_bytes(pxdoc, &data[offset], pxf->px_flen,
&data)) {

I agree with the compiler. &data[offset] makes no sense when data contains
random data.

Suggest code rework.


--
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.

< Previous Next >
This Thread
  • No further messages