Suppress warning about unitialized variable; compiler's constant folding
authorSam Hartman <hartmans@mit.edu>
Thu, 11 Apr 2002 20:19:58 +0000 (20:19 +0000)
committerSam Hartman <hartmans@mit.edu>
Thu, 11 Apr 2002 20:19:58 +0000 (20:19 +0000)
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

src/appl/gssftp/ftp/ChangeLog
src/appl/gssftp/ftp/radix.c

index 85e69cb38bb2077c93a4a3ea1bbcfb5a217c2293..51d11450a526fbe13709247414eaf735401cd30f 100644 (file)
@@ -1,3 +1,7 @@
+2002-04-11  Sam Hartman  <hartmans@mit.edu>
+
+       * radix.c : Initialize c and D to suppress warning; code was already correct
+
 2002-04-10  Danilo Almeida  <dalmeida@mit.edu>
 
        * ftp.c: Include Winsock 2 instead of Winsock.
index c989962c2834f9d30319bb35aee2b8f414a2cced..2d6dfd18df08116268d774d2fb5eb36708c24ddf 100644 (file)
@@ -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++) {