From d84be3e09ce89a291f5b9eb04e6cc1fd34a00541 Mon Sep 17 00:00:00 2001 From: CNLohr Date: Fri, 17 Mar 2017 01:33:26 -0400 Subject: Remove winbuild folder. --- redist/json_helpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'redist') 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); -- cgit v1.2.3