From: Sam Hartman Date: Thu, 11 Apr 2002 20:19:58 +0000 (+0000) Subject: Suppress warning about unitialized variable; compiler's constant folding X-Git-Tag: krb5-1.3-alpha1~775 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=88cea7a7d1f577e23d73c8e64db8b2d305c84bd1;p=krb5.git Suppress warning about unitialized variable; compiler's constant folding isn't good enough to notice it is always initialized git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14385 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gssftp/ftp/ChangeLog b/src/appl/gssftp/ftp/ChangeLog index 85e69cb38..51d11450a 100644 --- a/src/appl/gssftp/ftp/ChangeLog +++ b/src/appl/gssftp/ftp/ChangeLog @@ -1,3 +1,7 @@ +2002-04-11 Sam Hartman + + * radix.c : Initialize c and D to suppress warning; code was already correct + 2002-04-10 Danilo Almeida * ftp.c: Include Winsock 2 instead of Winsock. diff --git a/src/appl/gssftp/ftp/radix.c b/src/appl/gssftp/ftp/radix.c index c989962c2..2d6dfd18d 100644 --- a/src/appl/gssftp/ftp/radix.c +++ b/src/appl/gssftp/ftp/radix.c @@ -13,9 +13,9 @@ int radix_encode(inbuf, outbuf, len, decode) unsigned char inbuf[], outbuf[]; int *len, decode; { - int i,j,D; + int i,j,D = 0; char *p; - unsigned char c; + unsigned char c = 0; if (decode) { for (i=0,j=0; inbuf[i] && inbuf[i] != pad; i++) {