]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Work around uninitialized warning in cc_kcm.c 386/head
authorTom Yu <tlyu@mit.edu>
Wed, 6 Jan 2016 20:24:16 +0000 (15:24 -0500)
committerTom Yu <tlyu@mit.edu>
Wed, 6 Jan 2016 23:07:25 +0000 (18:07 -0500)
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)

src/lib/krb5/ccache/cc_kcm.c

index 1e404ee279d3ea37639b7c193bca3d375acbacec..a889e67b44926e555ba0c7d1c53be4fc69858964 100644 (file)
@@ -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;