Bug 141585 - 2 * local variable used before set
2 * local variable used before set
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: cups (Show other bugs)
3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-12-02 05:25 EST by David Binderman
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-12-02 05:43:40 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description David Binderman 2004-12-02 05:25:17 EST
Description of problem:

I just tried to compile package cups-1.1.22-0.rc1.8 from 
Redhat Fedora Core 3.

The compiler said

imagetops.c(300): remark #592: variable "xprint" is used before its
value is setimagetops.c(300): remark #592: variable "yprint" is used
before its value is set

The source code is

  fprintf(stderr, "DEBUG: Before scaling: xprint=%.1f, yprint=%.1f,
xppi=%d, yppi=%d, zoom=%.2f\n",
          xprint, yprint, xppi, yppi, zoom);

I agree with the compiler. This code would benefit from rework.



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Tim Waugh 2004-12-02 05:43:40 EST
http://www.cups.org/str.php?L1012

Note You need to log in before you can comment on or make changes to this bug.