Skip to content

Commit

Permalink
fix condition in xml_elem_next()
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed May 8, 2024
1 parent 3641e66 commit c539894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/xml/impl/impl_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ xml_elem_next(const xml_t * __restrict current, const char * __restrict name) {
xml_t *iter;
size_t namesize;

if (!current || !name || (iter = current->next))
if (!current || !name || !(iter = current->next))
return NULL;

namesize = strlen(name);
Expand Down

0 comments on commit c539894

Please sign in to comment.