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); }