]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add comment about SIZE initialization in xdr.c
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 10 Jul 2014 05:02:29 +0000 (10:32 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 10 Jul 2014 05:03:48 +0000 (10:33 +0530)
ChangeLog
sunrpc/xdr.c

index dfd393b219925694cdabcc9ea5561a91d91c5c4b..a8aa74bf988dbb0fcb02bcc38f8634f4d63ac78e 100644 (file)
--- 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.
index 129abd8f0018afb89d029a919e4cc7bd6a23aac0..fade667c8e263f8c51f2d55f8baa6b1845755900 100644 (file)
@@ -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;