Mailinglist Archive: opensuse-bugs (8045 mails)

< Previous Next >
[Bug 230172] New: cups-drivers-1.2.7-11: 2 * local variable used before set
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 21 Dec 2006 02:10:42 -0700 (MST)
  • Message-id: <bug-230172-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=230172

Summary: cups-drivers-1.2.7-11: 2 * 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: Printing
AssignedTo: jsmeix@xxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: jsmeix@xxxxxxxxxx


I just tried to compile package cups-drivers-1.2.7-11.

The compiler said

foomatic-combo-xml.c:1874: warning: 'make' is used uninitialized in this
function
foomatic-combo-xml.c:1874: warning: 'model' is used uninitialized in this
function

The source code is

fprintf(stderr, "The printer %s %s (ID: %s) is not supported by the
driver %s!\n",
make, model, pid, driver);

I have read the source code and I agree with the compiler.
Suggest initialise local variables "make" and "model" 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.

< Previous Next >
Follow Ups