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

uninitialized variable in clnt_broadcast



hi,

see the subject and the following patch. :-)

YAMAMOTO Takashi

Index: pmap_rmt.c
===================================================================
RCS file: /cvs/src/lib/libc/rpc/pmap_rmt.c,v
retrieving revision 1.21
diff -u -p -r1.21 pmap_rmt.c
--- pmap_rmt.c	31 Dec 2003 03:27:23 -0000	1.21
+++ pmap_rmt.c	15 Dec 2004 00:02:46 -0000
@@ -239,7 +239,7 @@ clnt_broadcast(prog, vers, proc, xargs, 
 	bool_t done = FALSE;
 	u_long xid;
 	u_long port;
-	struct in_addr *addrs;
+	struct in_addr *addrs = NULL;
 	struct sockaddr_in baddr, raddr; /* broadcast and response addresses */
 	struct rmtcallargs a;
 	struct rmtcallres r;