summaryrefslogtreecommitdiff
path: root/src/passwd/fgetpwent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/passwd/fgetpwent.c')
-rw-r--r--src/passwd/fgetpwent.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/passwd/fgetpwent.c b/src/passwd/fgetpwent.c
index eb47b2a1..fd472a07 100644
--- a/src/passwd/fgetpwent.c
+++ b/src/passwd/fgetpwent.c
@@ -6,5 +6,7 @@ struct passwd *fgetpwent(FILE *f)
static char *line;
static struct passwd pw;
size_t size=0;
- return __getpwent_a(f, &pw, &line, &size);
+ struct passwd *res;
+ __getpwent_a(f, &pw, &line, &size, &res);
+ return res;
}