From 754d3f50ced2598d8adeff7fe032ca06b625ac7e Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 23 Jul 2014 22:57:44 -0700 Subject: [PATCH] Check if we have a subparser before trying to use it --- src/platform/commandline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/commandline.c b/src/platform/commandline.c index a97f209ad..d6b0e9acd 100644 --- a/src/platform/commandline.c +++ b/src/platform/commandline.c @@ -50,7 +50,7 @@ bool parseCommandArgs(struct StartupOptions* opts, int argc, char* const* argv, "g" #endif ; - if (subparser->extraOptions) { + if (subparser && subparser->extraOptions) { // TODO: modularize options to subparsers strncat(options, subparser->extraOptions, sizeof(options) - strlen(options) - 1); }