Minor fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12774 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-02-26 12:43:50 +00:00
parent d5d2c5b6f7
commit ffea33604b
2 changed files with 6 additions and 0 deletions

View file

@ -7,6 +7,8 @@
* Tools/gdomap.c: many changes ... several fixes to work on mingw * Tools/gdomap.c: many changes ... several fixes to work on mingw
rewrite some clumsy inefficient code, make variables and functions rewrite some clumsy inefficient code, make variables and functions
local. etc. local. etc.
* Source/NSUnarchiver.m: ([versionForClassNameL]) return NSNotFound
if the class name was not present.
Mon Feb 25 15:26:38 2002 Nicola Pero <nicola@brainstorm.co.uk> Mon Feb 25 15:26:38 2002 Nicola Pero <nicola@brainstorm.co.uk>

View file

@ -1132,6 +1132,10 @@ static Class NSDataMallocClass;
NSUnarchiverObjectInfo *info; NSUnarchiverObjectInfo *info;
info = [objDict objectForKey: className]; info = [objDict objectForKey: className];
if (info == nil)
{
return NSNotFound;
}
return info->version; return info->version;
} }