mirror of
https://github.com/json-c/json-c.git
synced 2026-03-20 21:49:07 +08:00
Make sure TEST_PARSE_CHUNKSIZE is valid if it's set.
This commit is contained in:
@@ -42,6 +42,7 @@ static void single_incremental_parse(const char *test_string, int clear_serializ
|
||||
json_object *all_at_once_obj, *new_obj;
|
||||
const char *all_at_once_str, *new_str;
|
||||
|
||||
assert(chunksize > 0);
|
||||
all_at_once_obj = json_tokener_parse(test_string);
|
||||
if (clear_serializer)
|
||||
do_clear_serializer(all_at_once_obj);
|
||||
|
||||
Reference in New Issue
Block a user