From e1267a965b38478a416ca0364b7826a1763ef05d Mon Sep 17 00:00:00 2001 From: Patrick Oppenlander Date: Fri, 6 Nov 2009 11:11:02 +1100 Subject: [PATCH] core: fix assertion side effect http://avahi.org/ticket/287 --- avahi-core/cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avahi-core/cache.c b/avahi-core/cache.c index 9d97b6c..2786f74 100644 --- a/avahi-core/cache.c +++ b/avahi-core/cache.c @@ -64,7 +64,8 @@ static void remove_entry(AvahiCache *c, AvahiCacheEntry *e) { avahi_free(e); - assert(c->n_entries-- >= 1); + assert(c->n_entries >= 1); + --c->n_entries; } AvahiCache *avahi_cache_new(AvahiServer *server, AvahiInterface *iface) { -- 2.39.5