Bug 149715

Summary: local variable used before set
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: Gtk-PerlAssignee: Matthias Saou <matthias>
Status: CLOSED WONTFIX 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: 2005-04-07 19:42:30 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-25 18:03:11 UTC
Description of problem:

I just tried to compile package Gtk-Perl-0.7008-37 from 
Redhat Fedora Extras development tree.

The compiler said

1.

GtkObject.xs(860): remark #592: variable "signals" is used before its
value is set

The source code is

               sv_setiv(s, signals);

but signals hasn't been set since it's declaration. 

                int signals;

Suggest init signals 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 Matthias Saou 2005-04-07 19:42:30 UTC
Gtk-Perl is (AFAIK) unmaintained, and only provided as a legacy binding. If you
can provide a patch, I'll gladly included, but otherwise I really don't think
it's worth bothering unless this is known to cause serious issues.

Comment 2 David Binderman 2005-04-08 08:08:34 UTC
>If you can provide a patch

Suggest 

   int signals = 0;

This is untested.