diff --git a/VERSION b/VERSION index f4cd1b84..582e4458 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-98-g278d851c7c+1 \ No newline at end of file +B1-99-g4746c89227+1 \ No newline at end of file diff --git a/client/src/config.c b/client/src/config.c index ec07f844..2741fc18 100644 --- a/client/src/config.c +++ b/client/src/config.c @@ -449,6 +449,9 @@ static void doLicense() static bool optRendererParse(struct Option * opt, const char * str) { + if (!str) + return false; + if (strcasecmp(str, "auto") == 0) { params.forceRenderer = false; @@ -490,6 +493,9 @@ static char * optRendererToString(struct Option * opt) static bool optPosParse(struct Option * opt, const char * str) { + if (!str) + return false; + if (strcmp(str, "center") == 0) { params.center = true; @@ -527,6 +533,9 @@ static char * optPosToString(struct Option * opt) static bool optSizeParse(struct Option * opt, const char * str) { + if (!str) + return false; + if (sscanf(str, "%dx%d", ¶ms.w, ¶ms.h) == 2) { if (params.w < 1 || params.h < 1) @@ -558,4 +567,4 @@ static char * optScancodeToString(struct Option * opt) char * str; alloc_sprintf(&str, "%d = %s", opt->value.x_int, SDL_GetScancodeName(opt->value.x_int)); return str; -} \ No newline at end of file +}