* ktdefname.c (krb5_kt_default_name): Get rid of a variable that
authorEzra Peisach <epeisach@mit.edu>
Thu, 7 Jun 2001 17:50:05 +0000 (17:50 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 7 Jun 2001 17:50:05 +0000 (17:50 +0000)
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
src/lib/krb5/os/ktdefname.c

index 2aa21e6f9bfafb452f8bdf0458d867fb53179904..68b34aa5af81451b4cbf2187f6a339e4f0131141 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-07  Ezra Peisach  <epeisach@mit.edu>
+
+       * 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  <dalmeida@mit.edu>
 
        * locate_kdc.c (add_host_to_list): Initialize stack variable err
index 8c073fab0d1c426c69ba5199f70565a8caa02287..ec3b0bb5ac84af0fa403840c592e2718a401ad3a 100644 (file)
@@ -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;