From 734df283f8d1d7942bc2fd11615616e3c4af9618 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 10 Feb 2012 21:19:13 +0000 Subject: [PATCH] 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. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/asn.1/trval.c b/src/tests/asn.1/trval.c index 780d60c7d..ffd66ac41 100644 --- a/src/tests/asn.1/trval.c +++ b/src/tests/asn.1/trval.c @@ -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; -- 2.26.2