svn rev #25683: branches/krb5-1-10/src/tests/asn.1/

tlyu@MIT.EDU tlyu at MIT.EDU
Fri Feb 10 16:19:14 EST 2012


http://src.mit.edu/fisheye/changelog/krb5/?cs=25683
Commit By: tlyu
Log Message:
ticket: 7088
version_fixed: 1.10.1
status: resolved

Pull up r25679 from trunk

 ------------------------------------------------------------------------
 r25679 | ghudson | 2012-02-07 10:45:59 -0500 (Tue, 07 Feb 2012) | 9 lines

 ticket: 7088
 subject: Fix uninitialized variable warning in trval.c
 target_version: 1.10.1
 tags: pullup

 gcc -O3 is agressive enough to detect that do_cons() doesn't always
 set the value of rlen2, so trval2() gets a maybe-uninitialized
 warning.  Squash it by initializing rlen2.


Changed Files:
U   branches/krb5-1-10/src/tests/asn.1/trval.c
Modified: branches/krb5-1-10/src/tests/asn.1/trval.c
===================================================================
--- branches/krb5-1-10/src/tests/asn.1/trval.c	2012-02-10 21:19:10 UTC (rev 25682)
+++ branches/krb5-1-10/src/tests/asn.1/trval.c	2012-02-10 21:19:13 UTC (rev 25683)
@@ -176,7 +176,7 @@
     int lev;
     int *rlen;
 {
-    int l, eid, elen, xlen, r, rlen2;
+    int l, eid, elen, xlen, r, rlen2 = 0;
     int rlen_ext = 0;
 
     r = OK;



More information about the cvs-krb5 mailing list