[29241] in CVS-changelog-for-Kerberos-V5
krb5 commit [krb5-1.14]: Work around uninitialized warning in cc_kcm.c
daemon@ATHENA.MIT.EDU (Tom Yu)
Thu Jan 7 17:13:54 2016
Date: Thu, 7 Jan 2016 17:13:50 -0500
From: Tom Yu <tlyu@mit.edu>
Message-Id: <201601072213.u07MDoQP027562@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu
https://github.com/krb5/krb5/commit/ab7f74d758e5d87785804f10cad45e26956d2a5d
commit ab7f74d758e5d87785804f10cad45e26956d2a5d
Author: Tom Yu <tlyu@mit.edu>
Date: Wed Jan 6 15:24:16 2016 -0500
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.
(cherry picked from commit 40b007c0d8e2a12c6f4205ac111dee731c9d970c)
ticket: 8335
version_fixed: 1.14.1
src/lib/krb5/ccache/cc_kcm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/lib/krb5/ccache/cc_kcm.c b/src/lib/krb5/ccache/cc_kcm.c
index 1e404ee..a889e67 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;
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5