summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-08-22 15:34:20 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-08-22 15:34:20 +0000
commit8b675ecdf45217a779ef2f7809583a545cef5582 (patch)
tree696def73daf9c4f4c6f95771416efb40ee3d9b1c
parent27a2ecc1adc97497b97092a820177c0666238baf (diff)
downloadkrb5-8b675ecdf45217a779ef2f7809583a545cef5582.tar.gz
krb5-8b675ecdf45217a779ef2f7809583a545cef5582.tar.xz
krb5-8b675ecdf45217a779ef2f7809583a545cef5582.zip
Removed warnings of unused variable
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20682 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/kim/lib/kim_library.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kim/lib/kim_library.c b/src/kim/lib/kim_library.c
index 928d8aa051..911db91c8c 100644
--- a/src/kim/lib/kim_library.c
+++ b/src/kim/lib/kim_library.c
@@ -28,6 +28,7 @@
#include <pthread.h>
#include <stdarg.h>
+#include <k5-int.h>
#include <krb5/krb5.h>
#include <profile.h>
@@ -85,7 +86,7 @@ kim_boolean kim_library_allow_home_directory_access (void)
kim_boolean allow_access = FALSE;
kim_error err = kim_library_get_allow_home_directory_access (&allow_access);
- return allow_access;
+ return !err ? allow_access : FALSE;
}
@@ -139,6 +140,7 @@ kim_boolean kim_library_allow_automatic_prompting (void)
{
kim_boolean allow_automatic_prompting = TRUE;
kim_error err = kim_library_get_allow_automatic_prompting (&allow_automatic_prompting);
+ if (err) { allow_automatic_prompting = TRUE; }
if (allow_automatic_prompting && getenv ("KERBEROSLOGIN_NEVER_PROMPT")) {
kim_debug_printf ("KERBEROSLOGIN_NEVER_PROMPT is set.");