about summary refs log tree commit diff
path: root/nscd/pwdcache.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-05-04 13:21:38 +0000
committerAndreas Jaeger <aj@suse.de>2000-05-04 13:21:38 +0000
commit062cfe7a9b6e1f0f26e27c5e7a08034ebae4f864 (patch)
tree8661d6e86bfa89cb69b153bf4fd24660a3cf877b /nscd/pwdcache.c
parent229c86ead7062461ba689676ab8676a0ca268aee (diff)
downloadglibc-062cfe7a9b6e1f0f26e27c5e7a08034ebae4f864.tar.gz
glibc-062cfe7a9b6e1f0f26e27c5e7a08034ebae4f864.tar.xz
glibc-062cfe7a9b6e1f0f26e27c5e7a08034ebae4f864.zip
2000-05-04 Andreas Jaeger <aj@suse.de>
	* nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence
	GCC.
Diffstat (limited to 'nscd/pwdcache.c')
-rw-r--r--nscd/pwdcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c
index 32da08ee03..7e35bef1cc 100644
--- a/nscd/pwdcache.c
+++ b/nscd/pwdcache.c
@@ -1,5 +1,5 @@
 /* Cache handling for passwd lookup.
-   Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -204,7 +204,7 @@ addpwbyname (struct database *db, int fd, request_header *req,
   char *buffer = alloca (buflen);
   struct passwd resultbuf;
   struct passwd *pwd;
-  uid_t oldeuid;
+  uid_t oldeuid = 0;
 
   if (debug_level > 0)
     dbg_log (_("Haven't found \"%s\" in password cache!"), key);