diff --git a/code/qcommon/files.c b/code/qcommon/files.c index c935f7cb..04d5f981 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -547,6 +547,10 @@ qboolean FS_CreatePath (const char *OSPath) { char *ofs; char path[MAX_OSPATH]; + if (!OSPath || !*OSPath) { + return qfalse; + } + // make absolutely sure that it can't back up the path // FIXME: is c: allowed??? if ( strstr( OSPath, ".." ) || strstr( OSPath, "::" ) ) {