diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-06-27 19:35:17 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-06-27 19:35:17 +0000 |
commit | a42a105966d05df2ce9afefc387c99ac919fdfc4 (patch) | |
tree | 6dc3ed7bfa32fa45821f59d45e7e39e2ef34a810 /libc/pwd_grp/pwent.c | |
parent | 536362633fc9b7615f3cd2c0543e553c3e0f4cdf (diff) |
ret could have been used uninitialized in one case
Diffstat (limited to 'libc/pwd_grp/pwent.c')
-rw-r--r-- | libc/pwd_grp/pwent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/pwd_grp/pwent.c b/libc/pwd_grp/pwent.c index 51d2fba96..b8ae812cb 100644 --- a/libc/pwd_grp/pwent.c +++ b/libc/pwd_grp/pwent.c @@ -67,7 +67,7 @@ void endpwent(void) int getpwent_r (struct passwd *password, char *buff, size_t buflen, struct passwd **result) { - int ret; + int ret=EINVAL; LOCK; *result = NULL; if (pw_fd != -1 && (ret=__getpwent_r(password, buff, buflen, pw_fd)) == 0) { |