From: Alexandra Ellwood Date: Fri, 22 Aug 2008 15:34:20 +0000 (+0000) Subject: Removed warnings of unused variable X-Git-Tag: krb5-1.7-alpha1~467 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8b675ecdf45217a779ef2f7809583a545cef5582;p=krb5.git Removed warnings of unused variable git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20682 dc483132-0cff-0310-8789-dd5450dbe970 --- 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.");