]> git.meshlink.io Git - catta/commitdiff
core: fix assertion side effect
authorPatrick Oppenlander <patrick@motec.com.au>
Fri, 6 Nov 2009 00:11:02 +0000 (11:11 +1100)
committerLennart Poettering <lennart@poettering.net>
Sat, 14 Nov 2009 01:03:29 +0000 (02:03 +0100)
http://avahi.org/ticket/287

avahi-core/cache.c

index 9d97b6cd0a55ab01fbb609ba164529e848112cbf..2786f7435ad74ae4edeebf8025ed5fc97e8d8552 100644 (file)
@@ -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) {