Erik Hovland (3):

Fix any noticeable spelling or grammar errors.
      Make sure every va_start has a va_end.
      Check all pointers for validity.



git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@41 327403b1-1117-474d-bef2-5cb71233fd97
This commit is contained in:
Christopher Watford
2009-07-08 03:46:10 +00:00
parent c5cbf8214a
commit 543bb1431f
3 changed files with 7 additions and 2 deletions

View File

@@ -64,6 +64,7 @@ struct json_tokener* json_tokener_new(void)
struct json_tokener *tok;
tok = (struct json_tokener*)calloc(1, sizeof(struct json_tokener));
if (!tok) return NULL;
tok->pb = printbuf_new();
json_tokener_reset(tok);
return tok;