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: anonymous
Subject: [bugs #11080] NSNotificationCenter.m (GNUstep) setImmutableInPost returns uninitialized value
Date: Sun, 21 Nov 2004 10:43:51 -0500
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

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




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

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11080>
Project: GNUstep
Submitted by: 0
On: Son 21.11.2004 at 10:32

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


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;
}












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]