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:
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
|
#ifdef HAVE_WINDOWS__ACCESS
|
||||||
|
|
||||||
bool util_access(const char * entry, int mode) {
|
bool util_access(const char * entry, int mode) {
|
||||||
|
if (!entry)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return (_access(entry, mode) == 0);
|
return (_access(entry, mode) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user