mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-30 16:01:46 +00:00
Don't segfault in FS_CreatePath when there are no path seperators
This commit is contained in:
parent
2e904141ff
commit
c7500bb28e
1 changed files with 3 additions and 1 deletions
|
@ -533,7 +533,9 @@ qboolean FS_CreatePath (char *OSPath) {
|
||||||
|
|
||||||
// Skip creation of the root directory as it will always be there
|
// Skip creation of the root directory as it will always be there
|
||||||
ofs = strchr( path, PATH_SEP );
|
ofs = strchr( path, PATH_SEP );
|
||||||
|
if ( ofs != NULL ) {
|
||||||
ofs++;
|
ofs++;
|
||||||
|
}
|
||||||
|
|
||||||
for (; ofs != NULL && *ofs ; ofs++) {
|
for (; ofs != NULL && *ofs ; ofs++) {
|
||||||
if (*ofs == PATH_SEP) {
|
if (*ofs == PATH_SEP) {
|
||||||
|
|
Loading…
Reference in a new issue