Pull up r25679 from trunk
authorTom Yu <tlyu@mit.edu>
Fri, 10 Feb 2012 21:19:13 +0000 (21:19 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 10 Feb 2012 21:19:13 +0000 (21:19 +0000)
 ------------------------------------------------------------------------
 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.

ticket: 7088
version_fixed: 1.10.1
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-10@25683 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/asn.1/trval.c

index 780d60c7df08ab2a7ad564af52bb61afc475aa47..ffd66ac41b3349a128ac61d922d1e6c57f487a4f 100644 (file)
@@ -176,7 +176,7 @@ int trval2(fp, enc, len, lev, rlen)
     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;