Bug 121719 - variable "result" is used before its value is set
variable "result" is used before its value is set
Product: Fedora
Classification: Fedora
Component: kdegraphics (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
Depends On:
  Show dependency treegraph
Reported: 2004-04-26 15:12 EDT by d.binderman
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-09-23 13:42:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description d.binderman 2004-04-26 15:12:51 EDT
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:
Actual results:

Expected results:

Additional info:
Comment 1 Ngo Than 2004-09-23 13:42:00 EDT
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.