arrfab / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1505492-uninit-2.patch

147e83
commit d69b7f5ac02989ce3d8577eed86da3e0c8af6c1c
147e83
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
147e83
Date:   Thu Jul 10 10:32:29 2014 +0530
147e83
147e83
    Add comment about SIZE initialization in xdr.c
147e83
147e83
diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
147e83
index b3e713cbc9c3e012..d0afd34466f73def 100644
147e83
--- a/sunrpc/xdr.c
147e83
+++ b/sunrpc/xdr.c
147e83
@@ -738,6 +738,8 @@ xdr_string (xdrs, cpp, maxsize)
147e83
      u_int maxsize;
147e83
 {
147e83
   char *sp = *cpp;	/* sp is the actual string pointer */
147e83
+  /* Initialize to silence the compiler.  It is not really needed because SIZE
147e83
+     never actually gets used without being initialized.  */
147e83
   u_int size = 0;
147e83
   u_int nodesize;
147e83