mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
libecl. Local quick-fix to prevent crash under Windows when restart file is located in different directory
This commit is contained in:
1
ThirdParty/Ert/lib/util/util.c
vendored
1
ThirdParty/Ert/lib/util/util.c
vendored
@@ -2249,6 +2249,7 @@ 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 -1;
|
||||||
return (_access(entry, mode) == 0);
|
return (_access(entry, mode) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user