summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2012-08-27 19:50:09 +0000
committerEray Aslan <eras@gentoo.org>2012-08-27 19:50:09 +0000
commit2aaed514d2daa945a2ae5a0b5449402fe36742e8 (patch)
tree36889e7ae848c2ead3009479a39f56bbb61b28a5 /app-crypt
parentDo not run the test suite (bug #406801). (diff)
downloadgentoo-2-2aaed514d2daa945a2ae5a0b5449402fe36742e8.tar.gz
gentoo-2-2aaed514d2daa945a2ae5a0b5449402fe36742e8.tar.bz2
gentoo-2-2aaed514d2daa945a2ae5a0b5449402fe36742e8.zip
Fix more -Werror=uninitialized - bug #420465
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/mit-krb5/ChangeLog6
-rw-r--r--app-crypt/mit-krb5/files/mit-krb5-1.10.1_uninitialized_extra-2.patch83
2 files changed, 53 insertions, 36 deletions
diff --git a/app-crypt/mit-krb5/ChangeLog b/app-crypt/mit-krb5/ChangeLog
index 3399451379dd..e7ef9a034461 100644
--- a/app-crypt/mit-krb5/ChangeLog
+++ b/app-crypt/mit-krb5/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-crypt/mit-krb5
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v 1.338 2012/08/19 14:31:38 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v 1.339 2012/08/27 19:50:09 eras Exp $
+
+ 27 Aug 2012; Eray Aslan <eras@gentoo.org>
+ files/mit-krb5-1.10.1_uninitialized_extra-2.patch:
+ Fix more -Werror=uninitialized - bug #420465
19 Aug 2012; Raúl Porcel <armin76@gentoo.org> mit-krb5-1.9.4-r1.ebuild:
alpha/ia64/s390/sh/sparc stable wrt #429324
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
index ea172ea97a68..6cb25f2e8ef2 100644
--- 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
@@ -1,35 +1,48 @@
-# 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;
+# 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;
+diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c
+index 7dc5b47..cd90db8 100644
+--- a/src/util/profile/prof_init.c
++++ b/src/util/profile/prof_init.c
+@@ -255,7 +255,7 @@ copy_vtable_profile(profile_t profile, profile_t *ret_new_profile)
+ {
+ errcode_t err;
+ void *cbdata;
+- profile_t new_profile;
++ profile_t new_profile = NULL;
+
+ *ret_new_profile = NULL;
+