summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/spent.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-27 19:35:17 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-27 19:35:17 +0000
commita42a105966d05df2ce9afefc387c99ac919fdfc4 (patch)
tree6dc3ed7bfa32fa45821f59d45e7e39e2ef34a810 /libc/pwd_grp/spent.c
parent536362633fc9b7615f3cd2c0543e553c3e0f4cdf (diff)
ret could have been used uninitialized in one case
Diffstat (limited to 'libc/pwd_grp/spent.c')
-rw-r--r--libc/pwd_grp/spent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/pwd_grp/spent.c b/libc/pwd_grp/spent.c
index 734854b24..46f3a32be 100644
--- a/libc/pwd_grp/spent.c
+++ b/libc/pwd_grp/spent.c
@@ -64,7 +64,7 @@ void endspent(void)
int getspent_r (struct spwd *spwd, char *buff,
size_t buflen, struct spwd **result)
{
- int ret;
+ int ret=EINVAL;
LOCK;
*result = NULL;
if (spwd_fd != -1 && (ret=__getspent_r(spwd, buff, buflen, spwd_fd)) == 0) {