summaryrefslogtreecommitdiff
path: root/shadow/fgetspent_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'shadow/fgetspent_r.c')
-rw-r--r--shadow/fgetspent_r.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shadow/fgetspent_r.c b/shadow/fgetspent_r.c
index fafa89a28d..cb14a23037 100644
--- a/shadow/fgetspent_r.c
+++ b/shadow/fgetspent_r.c
@@ -60,8 +60,7 @@ __fgetspent_r (FILE *stream, struct spwd *resbuf, char *buffer, size_t buflen,
} while (*p == '\0' || *p == '#' || /* Ignore empty and comment lines. */
/* Parse the line. If it is invalid, loop to
get the next line of the file to parse. */
- ! parse_line (buffer, (void *) resbuf, NULL, 0,
- __errno_location ()));
+ ! parse_line (buffer, (void *) resbuf, NULL, 0, &errno));
*result = resbuf;
return 0;