* chk_trans.c (foreach_realm): Cleanup loal variable set but never
authorEzra Peisach <epeisach@mit.edu>
Thu, 28 Jun 2001 23:00:46 +0000 (23:00 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 28 Jun 2001 23:00:46 +0000 (23:00 +0000)
used.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13529 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/chk_trans.c

index 8a64d5a86ef50c3d3e814ea5487223f341f09251..3dcbfe663555b9bdf90b08c0dd3af8b2b1b88f5e 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-28  Ezra Peisach  <epeisach@mit.edu>
+
+       * chk_trans.c (foreach_realm): Cleanup loal variable set but never
+       used.
+
 2001-06-21  Ezra Peisach  <epeisach@mit.edu>
 
        * chk_trans.c: Cast length arguments of %.*s in formats to int.
index d380e89d7cf07d801444c3804a9a704979e8d83e..53492f868b7468998756bcde5d1c92b1698c0cf7 100644 (file)
@@ -175,7 +175,7 @@ foreach_realm (krb5_error_code (*fn)(krb5_data *comp,void *data), void *data,
 {
     char buf[MAXLEN], last[MAXLEN];
     char *p, *bufp;
-    int next_lit, have_prev, intermediates, l;
+    int next_lit, intermediates, l;
     krb5_data this_component;
     krb5_error_code r;
     krb5_data last_component;
@@ -188,7 +188,6 @@ foreach_realm (krb5_error_code (*fn)(krb5_data *comp,void *data), void *data,
        Keep these consistent, and we should be okay.  */
 
     next_lit = 0;
-    have_prev = 1;
     intermediates = 0;
     memset (buf, 0, sizeof (buf));
 
@@ -236,7 +235,6 @@ foreach_realm (krb5_error_code (*fn)(krb5_data *comp,void *data), void *data,
                        return r;
                }
                intermediates = 0;
-               have_prev = 1;
                memcpy (last, buf, sizeof (buf));
                last_component.length = this_component.length;
                memset (buf, 0, sizeof (buf));