mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix warning in config loader
This commit is contained in:
parent
030f12e39f
commit
dba275c570
|
@ -213,7 +213,7 @@ void GBAConfigMap(const struct GBAConfig* config, struct GBAOptions* opts) {
|
||||||
_lookupIntValue(config, "width", &opts->width);
|
_lookupIntValue(config, "width", &opts->width);
|
||||||
_lookupIntValue(config, "height", &opts->height);
|
_lookupIntValue(config, "height", &opts->height);
|
||||||
|
|
||||||
char* idleOptimization;
|
char* idleOptimization = 0;
|
||||||
if (_lookupCharValue(config, "idleOptimization", &idleOptimization)) {
|
if (_lookupCharValue(config, "idleOptimization", &idleOptimization)) {
|
||||||
if (strcasecmp(idleOptimization, "ignore") == 0) {
|
if (strcasecmp(idleOptimization, "ignore") == 0) {
|
||||||
opts->idleOptimization = IDLE_LOOP_IGNORE;
|
opts->idleOptimization = IDLE_LOOP_IGNORE;
|
||||||
|
|
Loading…
Reference in New Issue