From d69b7f5ac02989ce3d8577eed86da3e0c8af6c1c Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 10 Jul 2014 10:32:29 +0530 Subject: Add comment about SIZE initialization in xdr.c --- sunrpc/xdr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sunrpc') diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c index 129abd8f00..fade667c8e 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; -- cgit v1.2.3