all repos — mgba @ dba275c5705f54501ae6819fb34b9f93a29185c6

mGBA Game Boy Advance Emulator

GBA: Fix warning in config loader
Jeffrey Pfau jeffrey@endrift.com
Wed, 21 Jan 2015 23:07:04 -0800
commit

dba275c5705f54501ae6819fb34b9f93a29185c6

parent

030f12e39fe947a34c5fcd841bfc4e8ff7fe9071

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/gba-config.csrc/gba/gba-config.c

@@ -213,7 +213,7 @@ _lookupIntValue(config, "fullscreen", &opts->fullscreen);

_lookupIntValue(config, "width", &opts->width); _lookupIntValue(config, "height", &opts->height); - char* idleOptimization; + char* idleOptimization = 0; if (_lookupCharValue(config, "idleOptimization", &idleOptimization)) { if (strcasecmp(idleOptimization, "ignore") == 0) { opts->idleOptimization = IDLE_LOOP_IGNORE;