]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix spurious gcc warning in cc_file.c
authorGreg Hudson <ghudson@mit.edu>
Mon, 3 Nov 2014 22:27:00 +0000 (17:27 -0500)
committerGreg Hudson <ghudson@mit.edu>
Mon, 3 Nov 2014 22:32:18 +0000 (17:32 -0500)
commit35ab0d013f35a9840d0fbcb8de3b194eb501199d
tree38a59402122514fc8c5de30bc445efcaa9c33fbd
parent6979ead5e5c24ca0ec3569eb4bef48c2e5d8a726
Fix spurious gcc warning in cc_file.c

gcc 4.6.3 (present in Ubuntu 12.04) is smart enough to look at
get_size and see that it does not always assign to *size_out, but not
smart enough to figure out that it always assigns to *size_out when it
returns 0.  As a result, it outputs two warnings which we treat as
errors.  Add an initial assignment to *size_out at the beginning of
get_size to work around this.

ticket: 8026
src/lib/krb5/ccache/cc_file.c