Bug 118208

Summary: local variable used before set
Product: [Fedora] Fedora Reporter: d.binderman
Component: busyboxAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
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-03-25 05:50:17 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 d.binderman 2004-03-13 16:14:46 UTC
Description of problem:

I just tried to compile Fedora Core2 Test1 package busybox-1.00.pre5-2

The compiler said

networking/wget.c(205): remark #592: variable "target" is used before
its value
is set

The source code is

        proxy = getenv(target.is_ftp ? "ftp_proxy" : "http_proxy");

But this is the first use of local variable target since its declaration.
Suggest init target before first use.



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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Daniel Walsh 2004-03-25 05:50:17 UTC
Fixed in busybox-1.00.pre8