aboutsummaryrefslogtreecommitdiff
path: root/source/nds/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/nds/gui.c')
-rw-r--r--source/nds/gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index 733cb35..9333bb6 100644
--- a/source/nds/gui.c
+++ b/source/nds/gui.c
@@ -4153,6 +4153,7 @@ int load_emu_config_file(void)
pt[EMU_CONFIG_HEADER_SIZE]= 0;
if(!strcmp(pt, EMU_CONFIG_HEADER))
{
+ memset(&emu_config, 0, sizeof(emu_config));
fread(&emu_config, 1, sizeof(emu_config), fp);
fclose(fp);
return 0;