mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-05 00:12:16 +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;
|
filestatus_t retval = FS_NOTFOUND;
|
||||||
DIR **dirhandle;
|
DIR **dirhandle;
|
||||||
struct dirent *dent;
|
struct dirent *dent;
|
||||||
struct stat fsstat;
|
struct stat fsstat = {0};
|
||||||
int found = 0;
|
int found = 0;
|
||||||
char *searchname = strdup(filename);
|
char *searchname = strdup(filename);
|
||||||
int depthleft = maxsearchdepth;
|
int depthleft = maxsearchdepth;
|
||||||
|
|
@ -709,7 +709,7 @@ boolean preparefilemenu(boolean samedepth, boolean replayhut)
|
||||||
{
|
{
|
||||||
DIR *dirhandle;
|
DIR *dirhandle;
|
||||||
struct dirent *dent;
|
struct dirent *dent;
|
||||||
struct stat fsstat;
|
struct stat fsstat = {0};
|
||||||
size_t pos = 0, folderpos = 0, numfolders = 0;
|
size_t pos = 0, folderpos = 0, numfolders = 0;
|
||||||
char *tempname = NULL;
|
char *tempname = NULL;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue