Check for NULL pointer in file_exists().

svn path=/trunk/; revision=39318
This commit is contained in:
Stig Bjørlykke 2011-10-09 09:54:48 +00:00
parent 03194fa270
commit e0c689dc03

View File

@ -1708,6 +1708,10 @@ file_exists(const char *fname)
{
ws_statb64 file_stat;
if (!fname) {
return FALSE;
}
#ifdef _WIN32
/*
* This is a bit tricky on win32. The st_ino field is documented as: