From c6627995cc6cda653a8089f067f55f95da06c753 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 23 Aug 2010 14:32:34 +0000 Subject: [PATCH] * cd_sdl.c (get_cddev_arg): check for null or empty arguments also for non-windows platforms. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@286 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/cd_sdl.c | 2 ++ 1 file changed, 2 insertions(+) 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 }