From f0fab191e48f165c551980d724bba2f26a764795 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Tue, 29 Jan 2013 22:24:20 -0500 Subject: Prevent a file descriptor becoming unusable if the emulator configuration file is not in the correct format. --- source/nds/gui.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source') diff --git a/source/nds/gui.c b/source/nds/gui.c index c57c660..fd9007b 100644 --- a/source/nds/gui.c +++ b/source/nds/gui.c @@ -4335,6 +4335,10 @@ int load_emu_config_file(void) fclose(fp); return 0; } + else + { + fclose(fp); + } } //have no confiure file, set default -- cgit v1.2.3