[uClibc-cvs] uClibc/libc/pwd_grp pwent.c,1.11,1.12 spent.c,1.5,1.6

Erik Andersen andersen at uclibc.org
Fri Jun 27 19:35:21 UTC 2003


Update of /var/cvs/uClibc/libc/pwd_grp
In directory winder:/tmp/cvs-serv30929

Modified Files:
	pwent.c spent.c 
Log Message:
ret could have been used uninitialized in one case


Index: pwent.c
===================================================================
RCS file: /var/cvs/uClibc/libc/pwd_grp/pwent.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- pwent.c	27 Jun 2003 10:43:43 -0000	1.11
+++ pwent.c	27 Jun 2003 19:35:17 -0000	1.12
@@ -67,7 +67,7 @@
 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) {

Index: spent.c
===================================================================
RCS file: /var/cvs/uClibc/libc/pwd_grp/spent.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- spent.c	27 Jun 2003 10:43:43 -0000	1.5
+++ spent.c	27 Jun 2003 19:35:17 -0000	1.6
@@ -64,7 +64,7 @@
 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) {



More information about the uClibc-cvs mailing list