olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

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

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