From 501046247db97e470ba40b6ebc0f602e200c6511 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Tue, 21 Feb 2017 15:08:36 +0100 Subject: [PATCH] fix clang-sanitizer warnings --- cJSON.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cJSON.c b/cJSON.c index 68a7bb8..cf43ce9 100644 --- a/cJSON.c +++ b/cJSON.c @@ -1182,7 +1182,6 @@ static unsigned char *print_array(const cJSON * const item, const size_t depth, *output_pointer = '['; output_buffer->offset++; - current_element = item->child; while (current_element != NULL) { if (print_value(current_element, depth + 1, format, output_buffer, hooks) == NULL) @@ -1346,7 +1345,6 @@ static unsigned char *print_object(const cJSON * const item, const size_t depth, } output_buffer->offset += length; - current_item = item->child; while (current_item) { if (format)