mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-29 11:31:11 +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
8c3c74e514
commit
1cb0268da2
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue