diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-09-11 01:28:36 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-09-11 01:28:36 +0000 |
commit | 86c543216f13c1171eefd6dd8116855a7fa9c4bd (patch) | |
tree | f0e072086e234686f35d16904db300b324105736 /apps | |
parent | e80acd41b8b6450c83a83fe37a47bc75a3d5d88c (diff) |
Fix FS#12270 - properly initialiase the wps_data struct so skin_data_reset() doesnt crash later
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30499 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/skin_engine/skin_engine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_engine.c b/apps/gui/skin_engine/skin_engine.c index d136f90aa5..21d29452af 100644 --- a/apps/gui/skin_engine/skin_engine.c +++ b/apps/gui/skin_engine/skin_engine.c @@ -125,6 +125,7 @@ void gui_sync_skin_init(void) skins[j][i].gui_wps.data = &skins[j][i].data; skins[j][i].data.wps_loaded = false; skins[j][i].gui_wps.display = &screens[i]; + memset(skins[j][i].gui_wps.data, 0, sizeof(struct wps_data)); } } } |