URI:
       code-style: remove temporary variable, no need to initialize it - webdump - HTML to plain-text converter for webpages
  HTML git clone git://git.codemadness.org/webdump
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit a26127c95ac65dc8cc5e1a99884923aa2ed81a04
   DIR parent 83f319cce4257402c42efb6c7f784136ed19d528
  HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Wed, 11 Mar 2026 00:07:46 +0100
       
       code-style: remove temporary variable, no need to initialize it
       
       Removes Unused code Dead assignment warning with clang-analyzer.
       
       Diffstat:
         M webdump.c                           |      12 ++++--------
       
       1 file changed, 4 insertions(+), 8 deletions(-)
       ---
   DIR diff --git a/webdump.c b/webdump.c
       @@ -1763,7 +1763,7 @@ static void
        xmltagend(XMLParser *p, const char *t, size_t tl, int isshort)
        {
                struct tag *found, *tag;
       -        enum TagId child, childs[16];
       +        enum TagId childs[16];
                size_t nchilds;
                int i, j, k, nchildfound, parenttype;
        
       @@ -1778,7 +1778,6 @@ xmltagend(XMLParser *p, const char *t, size_t tl, int isshort)
                   in reality the optional tag rules are more complex, see:
                   https://html.spec.whatwg.org/multipage/syntax.html#optional-tags */
        
       -        child = 0;
                nchilds = 0;
                nchildfound = 0;
                parenttype = 0; /* by default, seek until the root */
       @@ -1820,8 +1819,7 @@ xmltagend(XMLParser *p, const char *t, size_t tl, int isshort)
                                if ((nodes[i].tag.displaytype & parenttype))
                                        break;
                                for (j = 0; j < nchilds; j++) {
       -                                child = childs[j];
       -                                if (nodes[i].tag.id == child) {
       +                                if (nodes[i].tag.id == childs[j]) {
                                                /* fake closing the previous tags */
                                                for (k = curnode; k >= i; k--)
                                                        endnode(&nodes[k]);
       @@ -1892,7 +1890,7 @@ xmltagstart(XMLParser *p, const char *t, size_t tl)
                struct tag *found;
                struct node *cur;
                enum TagId tagid;
       -        enum TagId child, childs[16];
       +        enum TagId childs[16];
                size_t nchilds;
                char *s;
                int i, j, k, nchildfound, parenttype;
       @@ -1918,7 +1916,6 @@ xmltagstart(XMLParser *p, const char *t, size_t tl)
                   in reality the optional tag rules are more complex, see:
                   https://html.spec.whatwg.org/multipage/syntax.html#optional-tags */
        
       -        child = 0;
                nchilds = 0;
                nchildfound = 0;
                parenttype = 0; /* by default, seek until the root */
       @@ -1979,8 +1976,7 @@ xmltagstart(XMLParser *p, const char *t, size_t tl)
                                if ((nodes[i].tag.displaytype & parenttype))
                                        break;
                                for (j = 0; j < nchilds; j++) {
       -                                child = childs[j];
       -                                if (nodes[i].tag.id == child) {
       +                                if (nodes[i].tag.id == childs[j]) {
                                                /* fake closing the previous tags */
                                                for (k = curnode; k >= i; k--)
                                                        xmltagend(p, nodes[k].tag.name, strlen(nodes[k].tag.name), 0);