2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

filesystem: fixed uninitialized pointers in FS_FindFile when fs_ext_path enabled

This commit is contained in:
SNMetamorph 2022-11-26 03:31:24 +04:00 committed by Alibek Omarov
parent 65671d8788
commit a2971ce939

View File

@ -1824,6 +1824,13 @@ searchpath_t *FS_FindFile( const char *name, int *index, qboolean gamedironly )
search = &fs_directpath;
memset( search, 0, sizeof( searchpath_t ));
search->printinfo = FS_PrintInfo_DIR;
search->close = FS_Close_DIR;
search->openfile = FS_OpenFile_DIR;
search->filetime = FS_FileTime_DIR;
search->findfile = FS_FindFile_DIR;
search->search = FS_Search_DIR;
// root folder has a more priority than netpath
Q_strncpy( search->filename, fs_rootdir, sizeof( search->filename ));
Q_strcat( search->filename, PATH_SPLITTER );