mirror of
https://github.com/mirror/wget.git
synced 2025-03-05 07:10:17 +08:00
* src/utils.ci (file_exists_p): Fix stat(NULL,...)
This commit is contained in:
parent
35f5f79ce1
commit
4bdb09d3a7
@ -563,6 +563,9 @@ file_exists_p (const char *filename, file_stats_t *fstats)
|
||||
{
|
||||
struct stat buf;
|
||||
|
||||
if (!filename)
|
||||
return false;
|
||||
|
||||
#if defined(WINDOWS) || defined(__VMS)
|
||||
int ret = stat (filename, &buf);
|
||||
if (ret >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user