about summary refs log tree commit diff
path: root/grp/fgetgrent_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'grp/fgetgrent_r.c')
-rw-r--r--grp/fgetgrent_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grp/fgetgrent_r.c b/grp/fgetgrent_r.c
index 9ac9dc19ef..de11326139 100644
--- a/grp/fgetgrent_r.c
+++ b/grp/fgetgrent_r.c
@@ -82,7 +82,7 @@ __fgetgrent_r (FILE *stream, struct group *resbuf, char *buffer, size_t buflen,
 		get the next line of the file to parse.  */
 	     || ! (parse_result = parse_line (p, resbuf,
 					      (void *) buffer, buflen,
-					      __errno_location ())));
+					      &errno)));
 
   if (parse_result == -1)
     {