JSON fixups thanks to Lubomir Rintel <lubo.rintel@gooddata.com>

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34681 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2012-01-31 16:32:40 +00:00
parent f2d0bb8ab0
commit ae9a3339fb
3 changed files with 68 additions and 38 deletions

View file

@ -374,6 +374,10 @@ parseString(ParserState *state)
[str release];
}
}
else if (nil == val)
{
val = [NSMutableString new];
}
if (!state->mutableStrings)
{
val = [val makeImmutableCopyOnFail: YES];