all repos — mgba @ 6a05ecf273e25fa31564226cea819f2aedc54dc4

mGBA Game Boy Advance Emulator

Perf: Fix crash when loading config
Jeffrey Pfau jeffrey@endrift.com
Fri, 19 Feb 2016 00:41:40 -0800
commit

6a05ecf273e25fa31564226cea819f2aedc54dc4

parent

733232be5ae2e53cbc5459a518f02d9d1685fe17

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

jump to
M src/platform/test/perf-main.csrc/platform/test/perf-main.c

@@ -98,7 +98,7 @@ mCoreConfigInit(&core->config, "perf");

mCoreConfigLoad(&core->config); mCoreConfigSetDefaultIntValue(&core->config, "idleOptimization", IDLE_LOOP_REMOVE); - struct mCoreOptions opts; + struct mCoreOptions opts = {}; mCoreConfigMap(&core->config, &opts); opts.audioSync = false; opts.videoSync = false;