about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-07-10 10:32:29 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-07-10 10:33:48 +0530
commitd69b7f5ac02989ce3d8577eed86da3e0c8af6c1c (patch)
treea086ef3872103c703f475027102e67e199f3f87b
parent5efe06a176c5665768ce7ded8a8b67ce9a7b329b (diff)
downloadglibc-d69b7f5ac02989ce3d8577eed86da3e0c8af6c1c.tar.gz
glibc-d69b7f5ac02989ce3d8577eed86da3e0c8af6c1c.tar.xz
glibc-d69b7f5ac02989ce3d8577eed86da3e0c8af6c1c.zip
Add comment about SIZE initialization in xdr.c
-rw-r--r--ChangeLog5
-rw-r--r--sunrpc/xdr.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index dfd393b219..a8aa74bf98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	* sunrpc/xdr.c (xdr_string): Add comment about SIZE
+	initialization.
+
 2014-07-09  David S. Miller  <davem@davemloft.net>
 
 	* sysdeps/sparc/fpu/libm-test-ulps: Update.
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;