From ecbb43c9b09e089e2b2c4a55ed763e71ef779424 Mon Sep 17 00:00:00 2001 From: Zachary Slater Date: Wed, 13 Jun 2007 20:41:06 +0000 Subject: [PATCH] gcc 4.2 patch from nyhm of gentoo (thanks!) --- code/tools/asm/cmdlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/tools/asm/cmdlib.c b/code/tools/asm/cmdlib.c index b1bd4eb2..738c5614 100644 --- a/code/tools/asm/cmdlib.c +++ b/code/tools/asm/cmdlib.c @@ -312,7 +312,7 @@ char *ExpandArg (const char *path) char *ExpandPath (const char *path) { static char full[1024]; - if (!qdir) + if (!qdir[0]) Error ("ExpandPath called without qdir set"); if (path[0] == '/' || path[0] == '\\' || path[1] == ':') { strcpy( full, path ); @@ -325,7 +325,7 @@ char *ExpandPath (const char *path) char *ExpandGamePath (const char *path) { static char full[1024]; - if (!qdir) + if (!qdir[0]) Error ("ExpandGamePath called without qdir set"); if (path[0] == '/' || path[0] == '\\' || path[1] == ':') { strcpy( full, path );