URI: 
       fix false-positive clang analyzer warning - 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 8c771e2594e6cac2784f0fa71cae2d0d85cbf9ff
   DIR parent 82ad9d077a5edd1627bc2ab3a6c8d4916e4e9309
  HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Tue, 14 Jul 2026 14:04:46 +0200
       
       fix false-positive clang analyzer warning
       
       (this cannot happen because the end tag should be set to a non-empty string)
       
       Diffstat:
         M webdump.c                           |      14 +++++++++-----
       
       1 file changed, 9 insertions(+), 5 deletions(-)
       ---
   DIR diff --git a/webdump.c b/webdump.c
       @@ -467,11 +467,15 @@ getnext_literal(void)
                        }
                }
        
       -        for (; *ignorestate; ignorestate++) {
       -                if ((c = getnext()) == EOF)
       -                        return EOF;
       -                if (TOLOWER((unsigned char)c) != TOLOWER((unsigned char)*ignorestate))
       -                        break;
       +        if (*ignorestate) {
       +                for (; *ignorestate; ignorestate++) {
       +                        if ((c = getnext()) == EOF)
       +                                return EOF;
       +                        if (TOLOWER((unsigned char)c) != TOLOWER((unsigned char)*ignorestate))
       +                                break;
       +                }
       +        } else {
       +                c = EOF; /* cannot happen, endtagmatch should be set (not empty) */
                }
        
                /* typical case: regular character */