bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bugs #11080] NSNotificationCenter.m (GNUstep) setImmutableInPost return


From: Richard Frith-Macdonald
Subject: [bugs #11080] NSNotificationCenter.m (GNUstep) setImmutableInPost returns uninitialized value
Date: Mon, 22 Nov 2004 07:18:45 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5

This mail is an automated notification from the bugs tracker
 of the project: GNUstep.

/**************************************************************************/
[bugs #11080] Latest Modifications:

Changes by: 
                Richard Frith-Macdonald <rfm@gnu.org>
'Date: 
                Mon 11/22/04 at 12:01 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
Removed this non-functional method.
Thanks for noticing it ... the method shouldn't have been there at all since it 
wasn't implemented to do anything
and had only been introduced for experimentation when doing some performance 
testing.






/**************************************************************************/
[bugs #11080] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11080>
Project: GNUstep
Submitted by: 0
On: Sun 11/21/04 at 15:32

Category:  Base/Foundation
Severity:  5 - Average
Item Group:  Bug
Resolution:  Fixed
Privacy:  Public
Assigned to:  None
Status:  Closed


Summary:  NSNotificationCenter.m (GNUstep) setImmutableInPost returns 
uninitialized value

Original Submission:  The compiler is right when it states that in the 
following function, take from the actual CVS version of NSNotificationCenter.m, 
the returned local variable "old" is never set to any value and thus returned 
uninitialized.

- (BOOL) setImmutableInPost: (BOOL)flag
{
  BOOL  old;

  lockNCTable(TABLE);

  if (self == default_center)
    {
      unlockNCTable(TABLE);
      [NSException raise: NSInvalidArgumentException
                  format: @"Can't change behavior of default center."];
    }
  if (LOCKCOUNT > 1)
    {
      unlockNCTable(TABLE);
      [NSException raise: NSInvalidArgumentException
                format: @"Can't change behavior during post."];
    }

  unlockNCTable(TABLE);
  
  return old;
}


Follow-up Comments
------------------


-------------------------------------------------------
Date: Mon 11/22/04 at 12:01         By: Richard Frith-Macdonald <CaS>
Removed this non-functional method.
Thanks for noticing it ... the method shouldn't have been there at all since it 
wasn't implemented to do anything
and had only been introduced for experimentation when doing some performance 
testing.












For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11080>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]