Skip to content

Commit

Permalink
Merge pull request #2 from ChrisJefferson/patch-1
Browse files Browse the repository at this point in the history
Handle empty JSON files gracefully
  • Loading branch information
vivkin committed May 27, 2014
2 parents add97a2 + 3e3214b commit c46039d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gason.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ JsonParseStatus jsonParse(char *s, char **endptr, JsonValue *value, JsonAllocato

bool separator = true;

*endptr = s;

while (*s) {
JsonValue o;

Expand Down

0 comments on commit c46039d

Please sign in to comment.