From: Siddhesh Poyarekar Date: Thu, 10 Jul 2014 05:02:29 +0000 (+0530) Subject: Add comment about SIZE initialization in xdr.c X-Git-Tag: upstream/2.30~7118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d69b7f5ac02989ce3d8577eed86da3e0c8af6c1c;p=external%2Fglibc.git Add comment about SIZE initialization in xdr.c --- diff --git a/ChangeLog b/ChangeLog index dfd393b..a8aa74b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-07-10 Siddhesh Poyarekar + + * sunrpc/xdr.c (xdr_string): Add comment about SIZE + initialization. + 2014-07-09 David S. Miller * sysdeps/sparc/fpu/libm-test-ulps: Update. diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c index 129abd8..fade667 100644 --- a/sunrpc/xdr.c +++ b/sunrpc/xdr.c @@ -739,6 +739,8 @@ xdr_string (xdrs, cpp, maxsize) u_int maxsize; { char *sp = *cpp; /* sp is the actual string pointer */ + /* Initialize to silence the compiler. It is not really needed because SIZE + never actually gets used without being initialized. */ u_int size = 0; u_int nodesize;