Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Nov 12, 2024
1 parent 19f5795 commit c098b82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/xml_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c098b82

Please sign in to comment.