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

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