aboutsummaryrefslogtreecommitdiffstats
path: root/parsetagx.c
diff options
context:
space:
mode:
Diffstat (limited to 'parsetagx.c')
-rw-r--r--parsetagx.c1
1 files changed, 1 insertions, 0 deletions
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);