summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-12-19 10:19:01 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-20 18:53:06 +0100
commitd5c513f213d49b70b809ee74715483dd1c50d242 (patch)
treef123d9f5225ebdfc829adf996f0b8228c761324b
parent2a45d72ab1a3648be9eef4202477aef78c60741a (diff)
downloadsssd-d5c513f213d49b70b809ee74715483dd1c50d242.tar.gz
sssd-d5c513f213d49b70b809ee74715483dd1c50d242.tar.xz
sssd-d5c513f213d49b70b809ee74715483dd1c50d242.zip
Add default section to switch statement
switch statements should always have a default section. In this particular case gcc gave a "'send_fn' may be used uninitialized in this function" warning.
-rw-r--r--src/providers/ldap/sdap_sudo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c
index 84d0a0beb..d084d6e1a 100644
--- a/src/providers/ldap/sdap_sudo.c
+++ b/src/providers/ldap/sdap_sudo.c
@@ -1229,6 +1229,9 @@ static int sdap_sudo_schedule_refresh(TALLOC_CTX *mem_ctx,
case SDAP_SUDO_REFRESH_RULES:
DEBUG(SSSDBG_OP_FAILURE, ("Rules refresh can't be scheduled!\n"));
return EINVAL;
+ default:
+ DEBUG(SSSDBG_CRIT_FAILURE, ("Unknown refresh type [%d].\n", refresh));
+ return EINVAL;
}