Fix -Wmaybe-uninitialized warning in xdr.c
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 9 Jul 2014 05:06:50 +0000 (10:36 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 9 Jul 2014 05:06:50 +0000 (10:36 +0530)
commit6ee3eab42979fdd5bb971a40fec32e04bb9dd2ad
tree70452bbbb53f12492f2685494adca1b079637525
parent6680738a18fc219de2e4f7be1d53e4fb251f1166
Fix -Wmaybe-uninitialized warning in xdr.c

While we're at fixing build warnings, here's one unnecessary warning
that can be fixed fairly easily.  The SIZE variable is never actually
use uninitialized, but the compiler cannot make that out and thinks
(correctly) that there is a potential for accessing SIZE without
initializing it.  Make this safe by initializing SIZE to 0.

Tested on x86_64.
ChangeLog
sunrpc/xdr.c