Bug 121721

Summary: variable "h" is used before its value is set
Product: [Fedora] Fedora Reporter: d.binderman
Component: kdeutilsAssignee: Than Ngo <than>
Status: CLOSED UPSTREAM QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mgarski
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-10-14 20:53:08 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-04-26 19:16:06 UTC
Description of problem:

I just tried to compile Core2 Test2 package kdeutils-3.2.1-1

The compiler said

kmultiformlistbox-multivisible.cpp(119): warning #592: variable "h" is
used before its value is set

The source code is

    int h;
    if ( strcmp(child2->name(),"seperator") != 0) {
      h += extra;


Clearly broken code. Suggest re-work to avoid reading uninitialised
local variable.



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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Marcin Garski 2004-10-14 20:53:08 UTC
Thank you for the bug report. This bug should be fixed by KDE
developers so everyone could use fixed version (not just FC users).

I've file a bug report in KDE bugzilla:
http://bugs.kde.org/show_bug.cgi?id=91345

If you want to follow what happens to the bug, you can add yourself to
the upstream report.

Comment 2 Marcin Garski 2004-10-15 15:49:20 UTC
This bug has been fixed in KDE CVS.

Comment 3 Than Ngo 2004-10-15 16:31:37 UTC
Marcin, it's great. thanks you a lot for doing that ;)