mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
a27fc66267
commit
c280ce26b5
2 changed files with 11 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue