From 2f2295c182c771af8c24dfda0007b2f3099d6d54 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Fri, 5 Jun 2015 15:11:57 +0200
Subject: [PATCH] Correctly initialize 'wordlen'.
---
apps/webbrowser/htmlparser.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/webbrowser/htmlparser.c b/apps/webbrowser/htmlparser.c
index b66307965..020fc513b 100644
--- a/apps/webbrowser/htmlparser.c
+++ b/apps/webbrowser/htmlparser.c
@@ -148,7 +148,7 @@ struct htmlparser_state {
unsigned char tagattrptr;
char tagattrparam[WWW_CONF_MAX_URLLEN + 1];
unsigned char tagattrparamptr;
- unsigned char lastchar, quotechar;
+ unsigned char quotechar;
unsigned char majorstate, lastmajorstate;
char linkurl[WWW_CONF_MAX_URLLEN + 1];
@@ -249,7 +249,7 @@ htmlparser_init(void)
{
s.majorstate = s.lastmajorstate = MAJORSTATE_DISCARD;
s.minorstate = MINORSTATE_TEXT;
- s.lastchar = 0;
+ s.wordlen = 0;
#if WWW_CONF_FORMS
s.formaction[0] = 0;
#endif /* WWW_CONF_FORMS */