diff --git a/Quake/cd_sdl.c b/Quake/cd_sdl.c index 9183cbc4..7f72b32f 100644 --- a/Quake/cd_sdl.c +++ b/Quake/cd_sdl.c @@ -480,6 +480,8 @@ static const char *get_cddev_arg (const char *arg) } return NULL; #else + if (!arg || ! *arg) + return NULL; return arg; #endif }