Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/rpc appease gcc -Wuninitialized



details:   https://anonhg.NetBSD.org/src/rev/ced2e993ec5b
branches:  trunk
changeset: 581379:ced2e993ec5b
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jun 01 05:54:07 2005 +0000

description:
appease gcc -Wuninitialized

diffstat:

 lib/libc/rpc/svc_simple.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 7e818a10cf0c -r ced2e993ec5b lib/libc/rpc/svc_simple.c
--- a/lib/libc/rpc/svc_simple.c Wed Jun 01 05:41:48 2005 +0000
+++ b/lib/libc/rpc/svc_simple.c Wed Jun 01 05:54:07 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svc_simple.c,v 1.26 2003/09/09 03:56:40 itojun Exp $   */
+/*     $NetBSD: svc_simple.c,v 1.27 2005/06/01 05:54:07 lukem Exp $    */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -48,7 +48,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: svc_simple.c,v 1.26 2003/09/09 03:56:40 itojun Exp $");
+__RCSID("$NetBSD: svc_simple.c,v 1.27 2005/06/01 05:54:07 lukem Exp $");
 #endif
 
 #include "namespace.h"
@@ -141,6 +141,9 @@
 
                madenow = FALSE;
                svcxprt = NULL;
+               recvsz = 0;
+               xdrbuf = NULL;
+               netid = NULL;
                for (pl = proglst; pl; pl = pl->p_nxt)
                        if (strcmp(pl->p_netid, nconf->nc_netid) == 0) {
                                svcxprt = pl->p_transp;



Home | Main Index | Thread Index | Old Index