mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([BinaryCStream -decodeName:]): Check for NULL name.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@864 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fb95ebf732
commit
689488cd4c
1 changed files with 4 additions and 2 deletions
|
@ -329,9 +329,11 @@ static BOOL debug_binary_coder;
|
|||
- (void) decodeName: (id <String> *)n
|
||||
{
|
||||
#if 1
|
||||
*n = nil;
|
||||
if (n)
|
||||
*n = nil;
|
||||
#else
|
||||
*n = [[[NSString alloc] init] autorelease];
|
||||
if (n)
|
||||
*n = [[[NSString alloc] init] autorelease];
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue