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

25845f
commit 6ee3eab42979fdd5bb971a40fec32e04bb9dd2ad
25845f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
25845f
Date:   Wed Jul 9 10:36:50 2014 +0530
25845f
25845f
    Fix -Wmaybe-uninitialized warning in xdr.c
25845f
    
25845f
    While we're at fixing build warnings, here's one unnecessary warning
25845f
    that can be fixed fairly easily.  The SIZE variable is never actually
25845f
    use uninitialized, but the compiler cannot make that out and thinks
25845f
    (correctly) that there is a potential for accessing SIZE without
25845f
    initializing it.  Make this safe by initializing SIZE to 0.
25845f
    
25845f
    Tested on x86_64.
25845f
25845f
diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
25845f
index 7eac2d40f036aa70..b3e713cbc9c3e012 100644
25845f
--- a/sunrpc/xdr.c
25845f
+++ b/sunrpc/xdr.c
25845f
@@ -738,7 +738,7 @@ xdr_string (xdrs, cpp, maxsize)
25845f
      u_int maxsize;
25845f
 {
25845f
   char *sp = *cpp;	/* sp is the actual string pointer */
25845f
-  u_int size;
25845f
+  u_int size = 0;
25845f
   u_int nodesize;
25845f
 
25845f
   /*