Bug 152089

Summary: scotty-2.1.11-620: local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Reinhard Max <max>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-02-19 13:58:31 UTC
I just tried to compile package scotty-2.1.11-620 with the Intel C compiler.

It said

./../tnm/generic/tnmHttp.c(1164): warning #592: variable "sockaddr" is used before its value is set

The source code is

    rc = HttpEvalCallback(interp, bindPtr->command,
                          inet_ntoa(sockaddr.sin_addr), path);

Suggest initialise local variable "sockaddr" before first use.
Comment 1 Reinhard Max 2006-02-20 17:45:57 UTC
Fixed for 10.1.
Comment 2 Reinhard Max 2006-02-20 17:47:00 UTC
.