Permalink
Browse files

Skip value type switch if still waiting for root value

  • Loading branch information...
1 parent a853137 commit b5717dcf4713fdaa0ea36df102c3787451a65319 @udp committed Feb 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 json.c
View
2 json.c
@@ -480,7 +480,7 @@ json_value * json_parse_ex (json_settings * settings, const json_char * json, ch
};
}
- if (flags & flag_skip)
+ if ((!top) || flags & flag_skip)
{
flags &= ~ flag_skip;
continue;

0 comments on commit b5717dc

Please sign in to comment.