mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
filesrch.c: Initialise struct stat
This commit is contained in:
parent
b0a8a0efad
commit
99808d7a4c
1 changed files with 2 additions and 2 deletions
|
|
@ -450,7 +450,7 @@ filestatus_t filesearch(char *filename, const char *startpath, const UINT8 *want
|
|||
filestatus_t retval = FS_NOTFOUND;
|
||||
DIR **dirhandle;
|
||||
struct dirent *dent;
|
||||
struct stat fsstat;
|
||||
struct stat fsstat = {0};
|
||||
int found = 0;
|
||||
char *searchname = strdup(filename);
|
||||
int depthleft = maxsearchdepth;
|
||||
|
|
@ -709,7 +709,7 @@ boolean preparefilemenu(boolean samedepth, boolean replayhut)
|
|||
{
|
||||
DIR *dirhandle;
|
||||
struct dirent *dent;
|
||||
struct stat fsstat;
|
||||
struct stat fsstat = {0};
|
||||
size_t pos = 0, folderpos = 0, numfolders = 0;
|
||||
char *tempname = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue