d816ac3326
PR: 174216 Submitted by: tj Approved by: maintainer timeout
11 lines
332 B
C
11 lines
332 B
C
--- eglib/src/gfile-posix.c.orig 2016-07-29 09:10:29 UTC
|
|
+++ eglib/src/gfile-posix.c
|
|
@@ -170,7 +170,7 @@ g_get_current_dir (void)
|
|
do {
|
|
buffer = g_realloc (buffer, s);
|
|
r = getcwd (buffer, s);
|
|
- fail = (r == NULL && errno == ERANGE);
|
|
+ fail = (r == NULL && (errno == ERANGE || errno == 0));
|
|
if (fail) {
|
|
s <<= 1;
|
|
}
|