[PATCH] common: fixed a minor bug in ExpandPath of tyrutils

Signed-off-by: O.Sezer <sezero@users.sourceforge.net>
Signed-off-by: Tyrann <tyrann@disenchant.net>
This commit is contained in:
Ozkan Sezer 2007-09-08 20:40:47 +09:30 committed by Tyrann
parent 2ef9568778
commit 32d0cd9417
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ ExpandPath(char *path)
{
static char full[1024];
if (!qdir)
if (!qdir[0])
Error("ExpandPath called without qdir set");
if (path[0] == '/' || path[0] == '\\' || path[1] == ':')
return path;