Merge some old work to include (some of) PR #464 into the current master branch.

This commit is contained in:
Eric Haszlakiewicz committed 2021-07-25 19:07:06 +00:00
commit 6a0df2609e
27 files changed
+275 -111

No files matched your search

+6
View File
@@ -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;