summaryrefslogtreecommitdiff
path: root/nscd/cache.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-04-15 08:43:35 +0000
committerUlrich Drepper <drepper@redhat.com>1999-04-15 08:43:35 +0000
commit9514f4e693df6e4d9e92faeec2bd4e61ca15fcf4 (patch)
tree61d22db16c4f0afbd7a656a230888a83048c5fbe /nscd/cache.c
parent96eaef36197e8664f6baadd0a1bffe72edd4a4e7 (diff)
downloadglibc-9514f4e693df6e4d9e92faeec2bd4e61ca15fcf4.tar.gz
Update.
* nscd/cache.c (prune_cache): The table might not be unused. In this case do nothing. message with the number/identifier.
Diffstat (limited to 'nscd/cache.c')
-rw-r--r--nscd/cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nscd/cache.c b/nscd/cache.c
index fc293a36f3..d034bcb051 100644
--- a/nscd/cache.c
+++ b/nscd/cache.c
@@ -129,6 +129,10 @@ prune_cache (struct database *table, time_t now)
size_t first = cnt + 1;
size_t last = 0;
+ /* If this table is not actually used don't do anything. */
+ if (cnt == 0)
+ return;
+
/* If we check for the modification of the underlying file we invalidate
the entries also in this case. */
if (table->check_file)