From: Tom Yu Date: Wed, 6 Jan 2016 20:24:16 +0000 (-0500) Subject: Work around uninitialized warning in cc_kcm.c X-Git-Tag: krb5-1.15-beta1~299 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F386%2Fhead;p=thirdparty%2Fkrb5.git Work around uninitialized warning in cc_kcm.c Some versions of clang erroneously detect use of an uninitialized variable reply_len in kcmio_call() when building on non-Mac platforms. Initialize it to work around this warning. ticket: 8335 (new) --- diff --git a/src/lib/krb5/ccache/cc_kcm.c b/src/lib/krb5/ccache/cc_kcm.c index 1e404ee279..a889e67b44 100644 --- a/src/lib/krb5/ccache/cc_kcm.c +++ b/src/lib/krb5/ccache/cc_kcm.c @@ -379,7 +379,7 @@ static krb5_error_code kcmio_call(krb5_context context, struct kcmio *io, struct kcmreq *req) { krb5_error_code ret; - size_t reply_len; + size_t reply_len = 0; if (k5_buf_status(&req->reqbuf) != 0) return ENOMEM;