From d698499602461b98fd56f2d550f80c6cb25f12a9 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 9 Jan 2013 10:42:29 +0100 Subject: Add a default section to a switch-statement Besides adding the missing default this patch suppresses a compiler warning about ret being uninitialized. --- src/tools/sss_cache.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tools') 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) { -- cgit