diff --git a/src/posix.c b/src/posix.c index 40bf0eed..0784d4bd 100644 --- a/src/posix.c +++ b/src/posix.c @@ -193,7 +193,8 @@ setenv_ (SCM s, SCM v) /*:((name . "setenv")) */ SCM access_p (SCM file_name, SCM mode) { - if (access (cell_bytes (STRING (file_name)), VALUE (mode)) == 0) + int result = access (cell_bytes (STRING (file_name)), VALUE (mode)); + if (result == 0) return cell_t; return cell_f; }