mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
fix bogus NSError generation when deserialising some property lists
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35382 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
349e696524
commit
cbbdf7a3df
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-08-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSPropertyList.m:
|
||||
Fix problem considering a lack of whitespace at the end of the
|
||||
list as an error.
|
||||
|
||||
2012-08-08 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Tools/AGSParser.m:
|
||||
|
|
|
@ -1250,13 +1250,17 @@ static id parsePlItem(pldata* pld)
|
|||
result = parseUnquotedString(pld);
|
||||
break;
|
||||
}
|
||||
if (start == YES && result != nil)
|
||||
if (YES == start && result != nil && nil == pld->err)
|
||||
{
|
||||
if (skipSpace(pld) == YES)
|
||||
{
|
||||
pld->err = @"extra data after parsed string";
|
||||
result = nil; // Not at end of string.
|
||||
}
|
||||
else
|
||||
{
|
||||
pld->err = nil; // end expcted
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue