xmltagend: fix checking the correct tag for the node - webdump - HTML to plain-text converter for webpages
 (HTM) git clone git://git.codemadness.org/webdump
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 64010b2be4bc3845ef07db25f8621c7894fe64bb
 (DIR) parent 178ee8229bd4e0cf0cb8dae6a979ccb473b9bf10
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Wed, 22 May 2024 18:47:04 +0200
       
       xmltagend: fix checking the correct tag for the node
       
       Diffstat:
         M webdump.c                           |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/webdump.c b/webdump.c
       @@ -1835,7 +1835,7 @@ xmltagend(XMLParser *p, const char *t, size_t tl, int isshort)
                           for handling optional closing tags */
                        tag = NULL;
                        for (i = curnode; i >= 0; i--) {
       -                        if (nodes[curnode].tag.name &&
       +                        if (nodes[i].tag.name &&
                                    !tagcmp(nodes[i].tag.name, t)) {
                                        endnode(&nodes[i]);
                                        curnode = i > 0 ? i - 1 : 0;