Don't segfault in FS_CreatePath when there are no path seperators

This commit is contained in:
Zack Middleton committed 2015-07-12 20:06:24 -05:00
1 parent 2e904141ff
commit c7500bb28e
1 file changed
+3 -1
+3 -1
View File
@@ -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) {