about summary refs log tree commit diff
path: root/io/getwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/getwd.c')
-rw-r--r--io/getwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/getwd.c b/io/getwd.c
index 8a8d01a28e..00825ee0b0 100644
--- a/io/getwd.c
+++ b/io/getwd.c
@@ -37,7 +37,7 @@ getwd (buf)
 
   if (buf == NULL)
     {
-      errno = EINVAL;
+      __set_errno (EINVAL);
       return NULL;
     }