Bug 121721 - variable "h" is used before its value is set
Summary: variable "h" is used before its value is set
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: kdeutils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-26 19:16 UTC by d.binderman
Modified: 2022-08-26 11:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-14 20:53:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ;)


Note You need to log in before you can comment on or make changes to this bug.