From 0fba2f1a6eb6861206ad120a02af2643938082cd Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Fri, 19 Aug 2016 19:05:25 +0900 Subject: Fix uninitialised values for and
Bug-Debian: https://github.com/tats/w3m/issues/16 --- parsetagx.c | 1 + 1 file changed, 1 insertion(+) (limited to 'parsetagx.c') diff --git a/parsetagx.c b/parsetagx.c index 3435f9f..cd1ff58 100644 --- a/parsetagx.c +++ b/parsetagx.c @@ -126,6 +126,7 @@ parse_tag(char **s, int internal) *(p++) = *(q++); SKIP_BLANKS(q); } + tagname[0] = '\0'; while (*q && !IS_SPACE(*q) && !(tagname[0] != '/' && *q == '/') && *q != '>' && p - tagname < MAX_TAG_LEN - 1) { *(p++) = TOLOWER(*q); -- cgit v1.2.3