summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2009-09-11 14:33:32 +0000
committerTeruaki Kawashima <teru@rockbox.org>2009-09-11 14:33:32 +0000
commit246e38e937ba3312e910973dedefd86ddc6622e9 (patch)
treef1aa418b96b6504aa372b7771a2011a88338a9ef /apps
parent640fcab293b8ed2c8797645a87371bd741312e88 (diff)
Initialize token before using.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22678 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/skin_engine/skin_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index c23f55c111..b3a46712de 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -1246,6 +1246,7 @@ static int parse_token(const char *wps_bufptr, struct wps_data *wps_data)
int skip = 0, taglen = 0, ret;
struct wps_token *token = wps_data->tokens + wps_data->num_tokens;
const struct wps_tag *tag;
+ memset(token, 0, sizeof(*token));
switch(*wps_bufptr)
{