From 652e13291a5373e14dbd3cf6e722a4555e2a7c6b Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 19 Jun 2001 17:37:31 +0000 Subject: [PATCH] pmap_prot2.c (xdr_pmaplist): Ensure variable set before use git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13387 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/rpc/ChangeLog | 4 ++++ src/lib/rpc/pmap_prot2.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/rpc/ChangeLog b/src/lib/rpc/ChangeLog index 4b18e7750..a6ce019e8 100644 --- a/src/lib/rpc/ChangeLog +++ b/src/lib/rpc/ChangeLog @@ -1,3 +1,7 @@ +2001-06-19 Ezra Peisach + + * pmap_prot2.c (xdr_pmaplist): Ensure variable set before use. + 2001-06-18 Ezra Peisach * auth_gssapi.c (auth_gssapi_create): Cast const gss_OID to diff --git a/src/lib/rpc/pmap_prot2.c b/src/lib/rpc/pmap_prot2.c index 1c64a4f2c..8c9722b21 100644 --- a/src/lib/rpc/pmap_prot2.c +++ b/src/lib/rpc/pmap_prot2.c @@ -93,7 +93,7 @@ xdr_pmaplist(xdrs, rp) */ bool_t more_elements; register int freeing = (xdrs->x_op == XDR_FREE); - register struct pmaplist **next; + register struct pmaplist **next = NULL; while (TRUE) { more_elements = (bool_t)(*rp != NULL); -- 2.26.2