Bug 115722 - used before set
Summary: used before set
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: ORBit
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mark McLoughlin
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-15 12:15 UTC by d.binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-07-28 12:31:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2004-02-15 12:15:38 UTC
Description of problem:

I just tried to compile package ORBit-0.5.17-10.3 from Fedora.

The compiler said

1.

orbit-event-server.c(674): remark #592: variable "retval" is used
before its value is set

The source code is

CORBA_any *
impl_CosEventChannelAdmin_ProxyPullSupplier_pull(impl_POA_CosEventChannelAdmin_ProxyPullSupplier
* servant,
                                    CORBA_Environment * ev)
{
   CORBA_any *retval;

   return retval;
}

retval contains rubbish, which is returned to the caller.
Suggest initialise retval before first use.

2.

orbit-event-server.c(684): remark #592: variable "retval" is used
before its value is set
orbit-event-server.c(743): remark #592: variable "retval" is used
before its value is set
orbit-event-server.c(752): remark #592: variable "retval" is used
before its value is set
orbit-event-server.c(761): remark #592: variable "retval" is used
before its value is set

Duplicates.



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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Mark McLoughlin 2004-07-28 12:31:14 UTC
Sorry to do this again - but its the thing same as with bug #111018
and bug #113376. ORBit is another package retained for compatibility
reasons. Its event server was never used in practice and is removed in
ORBit2. Thanks

Comment 2 David Binderman 2005-04-28 17:48:37 UTC
>Sorry to do this again

No problem, the bug still exists in 0.5.17-15, at least five versions
newer than the version I reported the bug in.

I don't really understand how supposedly dead packages keep getting their
version numbers bumped.

This bug still exists in Fedora Core 4, Test 1, dated about 27 April 2005 
or so.



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