From: Ezra Peisach Date: Thu, 28 Jun 2001 23:00:46 +0000 (+0000) Subject: * chk_trans.c (foreach_realm): Cleanup loal variable set but never X-Git-Tag: krb5-1.3-alpha1~1265 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bfa6afbbc03b318b66719d2b2f4075bbdf4f3c9e;p=krb5.git * chk_trans.c (foreach_realm): Cleanup loal variable set but never used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13529 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 8a64d5a86..3dcbfe663 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2001-06-28 Ezra Peisach + + * chk_trans.c (foreach_realm): Cleanup loal variable set but never + used. + 2001-06-21 Ezra Peisach * chk_trans.c: Cast length arguments of %.*s in formats to int. diff --git a/src/lib/krb5/krb/chk_trans.c b/src/lib/krb5/krb/chk_trans.c index d380e89d7..53492f868 100644 --- a/src/lib/krb5/krb/chk_trans.c +++ b/src/lib/krb5/krb/chk_trans.c @@ -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));