From 5f3bf70f039920d31a43a21f36a2ac02df41b7cd Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Mon, 29 Jun 2020 02:18:34 +0000 Subject: [PATCH] Make sure TEST_PARSE_CHUNKSIZE is valid if it's set. --- tests/test_parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_parse.c b/tests/test_parse.c index 3c9ac82..d84b9d6 100644 --- a/tests/test_parse.c +++ b/tests/test_parse.c @@ -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); -- 2.40.0