From 470ef84cee42e202cea947123ef0da79a097cded Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 7 Jun 2001 17:50:05 +0000 Subject: [PATCH] * ktdefname.c (krb5_kt_default_name): Get rid of a variable that was set in a conditional but never used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13289 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/ktdefname.c | 9 ++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 2aa21e6f9..68b34aa5a 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2001-06-07 Ezra Peisach + + * ktdefname.c (krb5_kt_default_name): Get rid of a variable that + was set in a conditional but never used. + 2001-05-08 Danilo Almeida * locate_kdc.c (add_host_to_list): Initialize stack variable err diff --git a/src/lib/krb5/os/ktdefname.c b/src/lib/krb5/os/ktdefname.c index 8c073fab0..ec3b0bb5a 100644 --- a/src/lib/krb5/os/ktdefname.c +++ b/src/lib/krb5/os/ktdefname.c @@ -43,7 +43,6 @@ krb5_kt_default_name(context, name, namesize) int namesize; { char *cp = 0; - krb5_error_code code; char *retval; if (krb5_overridekeyname) { @@ -55,10 +54,10 @@ krb5_kt_default_name(context, name, namesize) if ((size_t) namesize < (strlen(cp)+1)) return KRB5_CONFIG_NOTENUFSPACE; strcpy(name, cp); - } else if (((code = profile_get_string(context->profile, - "libdefaults", - "default_keytab_name", NULL, - NULL, &retval)) == 0) && + } else if ((profile_get_string(context->profile, + "libdefaults", + "default_keytab_name", NULL, + NULL, &retval) == 0) && retval) { if ((size_t) namesize < (strlen(retval)+1)) return KRB5_CONFIG_NOTENUFSPACE; -- 2.26.2