diff options
author | CNLohr <lohr85@gmail.com> | 2017-03-17 01:33:26 -0400 |
---|---|---|
committer | CNLohr <lohr85@gmail.com> | 2017-03-17 01:33:29 -0400 |
commit | d84be3e09ce89a291f5b9eb04e6cc1fd34a00541 (patch) | |
tree | 83675cbe1fe7276c8abbc58652a4fc260f6cf9d0 /redist | |
parent | 1837afbe2aa17af10fa508d71807912b0da6ec50 (diff) | |
download | libsurvive-d84be3e09ce89a291f5b9eb04e6cc1fd34a00541.tar.gz libsurvive-d84be3e09ce89a291f5b9eb04e6cc1fd34a00541.tar.bz2 |
Remove winbuild folder.
Diffstat (limited to 'redist')
-rw-r--r-- | redist/json_helpers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redist/json_helpers.c b/redist/json_helpers.c index 115076e..eb3600b 100644 --- a/redist/json_helpers.c +++ b/redist/json_helpers.c @@ -164,7 +164,8 @@ void json_load_file(const char* path) { jsmn_parser parser; jsmn_init(&parser); - uint32_t items = jsmn_parse(&parser, JSON_STRING, JSON_STRING_LEN, NULL, 0); + int32_t items = jsmn_parse(&parser, JSON_STRING, JSON_STRING_LEN, NULL, 0); + if (items < 0) return; jsmntok_t* tokens = malloc(items * sizeof(jsmntok_t)); jsmn_init(&parser); |