#4268 libecl : Guard null pointer access on Windows

This commit is contained in:
Magne Sjaastad 2019-04-01 14:43:04 +02:00
parent a7a771ac7f
commit 684526ef33

View File

@ -2153,6 +2153,11 @@ int util_fmove( FILE * stream , long offset , long shift) {
#ifdef HAVE_WINDOWS__ACCESS
bool util_access(const char * entry, int mode) {
if (!entry)
{
return false;
}
return (_access(entry, mode) == 0);
}