From c098b82a5fcf78bbe5a10efa71a2aeb02b8c2b34 Mon Sep 17 00:00:00 2001 From: DmitriyMusatkin Date: Mon, 11 Nov 2024 16:14:38 -0800 Subject: [PATCH] tidy --- source/xml_parser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/xml_parser.c b/source/xml_parser.c index 62ea0ae58..7675bff30 100644 --- a/source/xml_parser.c +++ b/source/xml_parser.c @@ -161,8 +161,10 @@ int s_advance_to_closing_tag( AWS_PRECONDITION(node); if (node->is_empty) { - out_body->ptr = NULL; - out_body->len = 0; + if (out_body) { + out_body->ptr = NULL; + out_body->len = 0; + } return AWS_OP_SUCCESS; }