blob: d62abcaf480afdf913d6018545d59b3959f55adf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Index: code/tools/asm/cmdlib.c
===================================================================
--- code/tools/asm/cmdlib.c (revision 1098)
+++ code/tools/asm/cmdlib.c (revision 1099)
@@ -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 );
|