1
0
Fork 0
forked from len0rd/rockbox

Initialize token before using.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22678 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2009-09-11 14:33:32 +00:00
parent 640fcab293
commit 246e38e937

View file

@ -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)
{