summaryrefslogtreecommitdiffstats
path: root/src/tools/sss_cache.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-01-09 10:42:29 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-01-09 11:36:22 +0100
commitd698499602461b98fd56f2d550f80c6cb25f12a9 (patch)
tree7e464ba608518f69ad2649a09bcafb7800c425f2 /src/tools/sss_cache.c
parent849aa25d7511a44e8f755c6f0a79b2746007a539 (diff)
downloadsssd-d698499602461b98fd56f2d550f80c6cb25f12a9.tar.gz
sssd-d698499602461b98fd56f2d550f80c6cb25f12a9.tar.xz
sssd-d698499602461b98fd56f2d550f80c6cb25f12a9.zip
Add a default section to a switch-statement
Besides adding the missing default this patch suppresses a compiler warning about ret being uninitialized.
Diffstat (limited to 'src/tools/sss_cache.c')
-rw-r--r--src/tools/sss_cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c
index 56fcd46c9..5cced0c2b 100644
--- a/src/tools/sss_cache.c
+++ b/src/tools/sss_cache.c
@@ -314,6 +314,9 @@ bool invalidate_entries(TALLOC_CTX *ctx, struct sysdb_ctx *sysdb,
type_string = "autofs map";
ret = search_autofsmaps(ctx, sysdb, filter, attrs, &msg_count, &msgs);
break;
+ default:
+ DEBUG(SSSDBG_OP_FAILURE, ("Unknown entry type [%d].\n", entry_type));
+ return false;
}
if (ret != EOK) {