diff options
author | Christopher Watford <christopher.watford@gmail.com> | 2009-07-08 03:46:10 +0000 |
---|---|---|
committer | Christopher Watford <christopher.watford@gmail.com> | 2009-07-08 03:46:10 +0000 |
commit | 543bb1431f12cd62e7d9d4b65989919409e239c9 (patch) | |
tree | a1a4d2a7f111fe9058243418845153eef353eefd /json_tokener.c | |
parent | c5cbf8214ab628bead203d2ac3a1948bc3005801 (diff) |
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
Diffstat (limited to 'json_tokener.c')
-rw-r--r-- | json_tokener.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/json_tokener.c b/json_tokener.c index 8e8c6d9..a1951b9 100644 --- a/json_tokener.c +++ b/json_tokener.c @@ -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; |