From cc5d081cc5509308f10a45cc4e076238d4348444 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 31 Mar 2023 00:44:09 -0700 Subject: [PATCH] xmlproc: fix parsing empty elements --- src/xmlproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmlproc.c b/src/xmlproc.c index b0045aec..fdd5ce96 100644 --- a/src/xmlproc.c +++ b/src/xmlproc.c @@ -548,7 +548,7 @@ parse_element(const tchar **pp, struct xml_node *parent, int depth, CHECK(*p == '<'); p++; name_start = p; - while (!is_whitespace(*p) && *p != '>' && *p != '\0') + while (!is_whitespace(*p) && *p != '>' && *p != '/' && *p != '\0') p++; name_len = p - name_start; CHECK(name_len > 0); -- 2.43.0