mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4268 libecl : Guard null pointer access on Windows
This commit is contained in:
parent
a7a771ac7f
commit
684526ef33
5
ThirdParty/Ert/lib/util/util.c
vendored
5
ThirdParty/Ert/lib/util/util.c
vendored
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user