bugGNUstep - Bugs: bug #11080, NSNotificationCenter.m (GNUstep)...

Group
 
 

bug #11080: NSNotificationCenter.m (GNUstep) setImmutableInPost returns uninitialized value

Submitter:  None
Submitted:  Sun 21 Nov 2004 03:32:20 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 22 Nov 2004 12:01:58 PM UTC, comment #1: 

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.

Richard Frith-Macdonald <CaS>
Group Member
Sun 21 Nov 2004 03:32:20 PM UTC, 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;
}

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-11-22 CaS StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code