summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/krb5/krb5/0001-Work-around-uninitialized-warning-in-cc_kcm.c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-connectivity/krb5/krb5/0001-Work-around-uninitialized-warning-in-cc_kcm.c.patch')
-rw-r--r--meta-oe/recipes-connectivity/krb5/krb5/0001-Work-around-uninitialized-warning-in-cc_kcm.c.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/krb5/krb5/0001-Work-around-uninitialized-warning-in-cc_kcm.c.patch b/meta-oe/recipes-connectivity/krb5/krb5/0001-Work-around-uninitialized-warning-in-cc_kcm.c.patch
new file mode 100644
index 000000000..c6731a900
--- /dev/null
+++ b/meta-oe/recipes-connectivity/krb5/krb5/0001-Work-around-uninitialized-warning-in-cc_kcm.c.patch
@@ -0,0 +1,37 @@
1From f1b681a44d28946e6d8fc0080f3efe94228d7dfe Mon Sep 17 00:00:00 2001
2From: Tom Yu <tlyu@mit.edu>
3Date: Wed, 6 Jan 2016 15:24:16 -0500
4Subject: [PATCH] Work around uninitialized warning in cc_kcm.c
5
6Some versions of clang erroneously detect use of an uninitialized
7variable reply_len in kcmio_call() when building on non-Mac platforms.
8Initialize it to work around this warning.
9
10(cherry picked from commit 40b007c0d8e2a12c6f4205ac111dee731c9d970c)
11
12ticket: 8335
13version_fixed: 1.13.4
14tags: -pullup
15status: resolved
16
17Upstream-Status: backport
18---
19 src/lib/krb5/ccache/cc_kcm.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/src/lib/krb5/ccache/cc_kcm.c b/src/lib/krb5/ccache/cc_kcm.c
23index b763ea4..6337b57 100644
24--- a/src/lib/krb5/ccache/cc_kcm.c
25+++ b/src/lib/krb5/ccache/cc_kcm.c
26@@ -377,7 +377,7 @@ static krb5_error_code
27 kcmio_call(krb5_context context, struct kcmio *io, struct kcmreq *req)
28 {
29 krb5_error_code ret;
30- size_t reply_len;
31+ size_t reply_len = 0;
32
33 if (k5_buf_status(&req->reqbuf) != 0)
34 return ENOMEM;
35--
362.8.2
37