From 8b675ecdf45217a779ef2f7809583a545cef5582 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Fri, 22 Aug 2008 15:34:20 +0000 Subject: [PATCH] Removed warnings of unused variable git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20682 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kim/lib/kim_library.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kim/lib/kim_library.c b/src/kim/lib/kim_library.c index 928d8aa05..911db91c8 100644 --- a/src/kim/lib/kim_library.c +++ b/src/kim/lib/kim_library.c @@ -28,6 +28,7 @@ #include #include +#include #include #include @@ -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."); -- 2.26.2