Merge some old work to include (some of) PR #464 into the current master branch.
This commit is contained in:
commit
6a0df2609e
27 files changed
+275
-111
No files matched your search
@@ -155,6 +155,12 @@ struct json_tokener *json_tokener_new_ex(int depth)
|
||||
return NULL;
|
||||
}
|
||||
tok->pb = printbuf_new();
|
||||
if (!tok->pb)
|
||||
{
|
||||
free(tok);
|
||||
free(tok->stack);
|
||||
return NULL;
|
||||
}
|
||||
tok->max_depth = depth;
|
||||
json_tokener_reset(tok);
|
||||
return tok;
|
||||
|
||||
Reference in new issue
Block a user