([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:
mccallum 1996-01-26 20:34:42 +00:00
parent 8c3c74e514
commit 1cb0268da2

View file

@ -329,8 +329,10 @@ static BOOL debug_binary_coder;
- (void) decodeName: (id <String> *)n - (void) decodeName: (id <String> *)n
{ {
#if 1 #if 1
if (n)
*n = nil; *n = nil;
#else #else
if (n)
*n = [[[NSString alloc] init] autorelease]; *n = [[[NSString alloc] init] autorelease];
#endif #endif
} }