Check if we have a subparser before trying to use it
Jeffrey Pfau jeffrey@endrift.com
Wed, 23 Jul 2014 22:57:44 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/platform/commandline.c
→
src/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); }