Bug 141585

Summary: 2 * local variable used before set
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-02 10:43:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Binderman 2004-12-02 10:25:17 UTC
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 10:43:40 UTC
http://www.cups.org/str.php?L1012