summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2012-04-11 13:52:50 +0000
committerEray Aslan <eras@gentoo.org>2012-04-11 13:52:50 +0000
commit5b46a79319d0a999bd01dc89cdcd13ce3cfbd821 (patch)
treeac32ad437cb8a8c8c127eb1960985961bb658739 /app-crypt/mit-krb5/files
parentStable for HPPA (bug #410983). (diff)
downloadgentoo-2-5b46a79319d0a999bd01dc89cdcd13ce3cfbd821.tar.gz
gentoo-2-5b46a79319d0a999bd01dc89cdcd13ce3cfbd821.tar.bz2
gentoo-2-5b46a79319d0a999bd01dc89cdcd13ce3cfbd821.zip
Fix some more -Werror=uninitialized errors - bug #410431. Thanks to Alexander Adam
(Portage version: 2.1.10.56/cvs/Linux x86_64)
Diffstat (limited to 'app-crypt/mit-krb5/files')
-rw-r--r--app-crypt/mit-krb5/files/mit-krb5-1.10.1_uninitialized_extra-2.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/app-crypt/mit-krb5/files/mit-krb5-1.10.1_uninitialized_extra-2.patch b/app-crypt/mit-krb5/files/mit-krb5-1.10.1_uninitialized_extra-2.patch
new file mode 100644
index 000000000000..ea172ea97a68
--- /dev/null
+++ b/app-crypt/mit-krb5/files/mit-krb5-1.10.1_uninitialized_extra-2.patch
@@ -0,0 +1,35 @@
+# bug 410431
+
+--- a/src/kadmin/ktutil/ktutil_funcs.c
++++ b/src/kadmin/ktutil/ktutil_funcs.c
+@@ -64,7 +64,7 @@
+ krb5_kt_list *list;
+ int idx;
+ {
+- krb5_kt_list lp, prev;
++ krb5_kt_list lp, prev = NULL;
+ int i;
+
+ for (lp = *list, i = 1; lp; prev = lp, lp = lp->next, i++) {
+--- a/src/lib/kadm5/alt_prof.c
++++ b/src/lib/kadm5/alt_prof.c
+@@ -164,7 +164,7 @@
+ char **values;
+ char *valp;
+ int idx;
+- krb5_boolean val;
++ krb5_boolean val = 0;
+
+ kret = krb5_aprof_getvals (acontext, hierarchy, &values);
+ if (kret)
+--- a/src/lib/krb5/unicode/ucstr.c
++++ b/src/lib/krb5/unicode/ucstr.c
+@@ -109,7 +109,7 @@
+ krb5_data ** newdataptr,
+ unsigned flags)
+ {
+- int i, j, len, clen, outpos, ucsoutlen, outsize;
++ int i, j, len, clen, outpos = 0, ucsoutlen, outsize;
+ char *out = NULL, *outtmp, *s;
+ krb5_ucs4 *ucs = NULL, *p, *ucsout = NULL;
+ krb5_data *newdata;