Bug 121719 - variable "result" is used before its value is set
Summary: variable "result" is used before its value is set
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kdegraphics
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-26 19:12 UTC by d.binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-09-23 17:42:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2004-04-26 19:12:51 UTC
Description of problem:

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

The compiler said

watcher_stub.cpp(29): warning #592: variable "result" is used before
its value is set


The source code is

    bool result;
    if ( !dcopClient()  ) {
        setStatus( CallFailed );
        return result;

Clearly broken code. Suggest re-work to avoid reading uninitalised
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 Than Ngo 2004-09-23 17:42:00 UTC
it's fixed in 3.3.0-2. Thanks for your report.


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