svn rev #25679: trunk/src/tests/asn.1/

ghudson@MIT.EDU ghudson at MIT.EDU
Tue Feb 7 10:45:59 EST 2012


http://src.mit.edu/fisheye/changelog/krb5/?cs=25679
Commit By: ghudson
Log Message:
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   trunk/src/tests/asn.1/trval.c
Modified: trunk/src/tests/asn.1/trval.c
===================================================================
--- trunk/src/tests/asn.1/trval.c	2012-02-07 03:54:13 UTC (rev 25678)
+++ trunk/src/tests/asn.1/trval.c	2012-02-07 15:45:59 UTC (rev 25679)
@@ -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