From: Eric Haszlakiewicz Date: Mon, 29 Jun 2020 02:18:34 +0000 (+0000) Subject: Make sure TEST_PARSE_CHUNKSIZE is valid if it's set. X-Git-Tag: json-c-0.15-20200726~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f3bf70f039920d31a43a21f36a2ac02df41b7cd;p=thirdparty%2Fjson-c.git Make sure TEST_PARSE_CHUNKSIZE is valid if it's set. --- diff --git a/tests/test_parse.c b/tests/test_parse.c index 3c9ac82a..d84b9d63 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);