all repos — mgba @ 754d3f50ced2598d8adeff7fe032ca06b625ac7e

mGBA Game Boy Advance Emulator

Check if we have a subparser before trying to use it
Jeffrey Pfau jeffrey@endrift.com
Wed, 23 Jul 2014 22:57:44 -0700
commit

754d3f50ced2598d8adeff7fe032ca06b625ac7e

parent

6bbb1d5b43403985f4544207b76792e1484c43cd

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

jump to
M src/platform/commandline.csrc/platform/commandline.c

@@ -50,7 +50,7 @@ #ifdef USE_GDB_STUB

"g" #endif ; - if (subparser->extraOptions) { + if (subparser && subparser->extraOptions) { // TODO: modularize options to subparsers strncat(options, subparser->extraOptions, sizeof(options) - strlen(options) - 1); }