1
0
mirror of https://github.com/DaveGamble/cJSON synced 2024-12-27 00:52:03 +00:00

fix clang-sanitizer warnings

This commit is contained in:
Max Bruckner 2017-02-21 15:08:36 +01:00
parent 68cd0d4a11
commit 501046247d

View File

@ -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)