diff --git a/code/qcommon/files.c b/code/qcommon/files.c index eb51faa9..376eaad9 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -533,7 +533,9 @@ qboolean FS_CreatePath (char *OSPath) { // Skip creation of the root directory as it will always be there ofs = strchr( path, PATH_SEP ); - ofs++; + if ( ofs != NULL ) { + ofs++; + } for (; ofs != NULL && *ofs ; ofs++) { if (*ofs == PATH_SEP) {