From: Patrick Oppenlander Date: Fri, 6 Nov 2009 00:11:02 +0000 (+1100) Subject: core: fix assertion side effect X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=e1267a965b38478a416ca0364b7826a1763ef05d;p=catta core: fix assertion side effect http://avahi.org/ticket/287 --- 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) {