From: Greg Hudson Date: Tue, 7 Feb 2012 15:45:59 +0000 (+0000) Subject: Fix uninitialized variable warning in trval.c X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=075e5e49c59fbc9611d8ab96524cfde4209713f5;p=krb5.git Fix uninitialized variable warning in trval.c 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 target_version: 1.10.1 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25679 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/asn.1/trval.c b/src/tests/asn.1/trval.c index bdfea4e2f..c5afc8c2f 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;