Bug 149776

Summary: local variable used before set
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: hping2Assignee: Miguel Armas <kuko>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
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: 2005-07-26 16:28:49 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 2005-02-26 14:50:02 UTC
Description of problem:

I just tried to compile package hping2-2.0.0-0.3.rc3 from 
Redhat Fedora Extras development tree.

The compiler said

getifname.c(63): remark #592: variable "sa" is used before its value
is set

The source code is

                        if (opt_debug)
                                printf("DEBUG: Output interface
address: %s\n",
                                        inet_ntoa(sa.sin_addr));

Suggest init local variable sa 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: