Init the virtual /fs/ and /fs/vol/ path properly

This commit is contained in:
Maschell 2022-10-06 17:43:06 +02:00
parent 50600d3d82
commit 4ac4e0a9a6

View File

@ -112,7 +112,10 @@ void AddVirtualFSPath(const char *name, const char *alias, const char *prefix) {
VIRTUAL_FS = tmp;
VIRTUAL_FS[MAX_VIRTUAL_FS].name = strdup(name);
VIRTUAL_FS[MAX_VIRTUAL_FS].name = strdup(name);
VIRTUAL_FS[MAX_VIRTUAL_FS].alias = NULL;
VIRTUAL_FS[MAX_VIRTUAL_FS].prefix = NULL;
VIRTUAL_FS[MAX_VIRTUAL_FS].inserted = true;
MAX_VIRTUAL_FS++;
}
@ -132,7 +135,10 @@ void AddVirtualFSVOLPath(const char *name, const char *alias, const char *prefix
VIRTUAL_FS_VOL = tmp;
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].name = strdup(name);
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].name = strdup(name);
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].alias = NULL;
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].prefix = NULL;
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].inserted = true;
MAX_VIRTUAL_FS_VOL++;
}