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

@ -113,6 +113,9 @@ void AddVirtualFSPath(const char *name, const char *alias, const char *prefix) {
VIRTUAL_FS = tmp; 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++; MAX_VIRTUAL_FS++;
} }
@ -133,6 +136,9 @@ void AddVirtualFSVOLPath(const char *name, const char *alias, const char *prefix
VIRTUAL_FS_VOL = tmp; 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++; MAX_VIRTUAL_FS_VOL++;
} }