]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
assert and lint.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 19 Sep 2017 09:15:59 +0000 (09:15 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 19 Sep 2017 09:15:59 +0000 (09:15 +0000)
git-svn-id: file:///svn/unbound/trunk@4354 be551aaa-1e26-0410-a405-d3ace91eadb9

services/mesh.c

index 5cf7daeffdb5bc3ff1b4056d0e8311a37482a2d2..8835e9d62f73cb136c57517e342eb9650f91cb04 100644 (file)
@@ -605,7 +605,13 @@ static void mesh_schedule_prefetch(struct mesh_area* mesh,
        }
 
        if(!run) {
+#ifdef UNBOUND_DEBUG
+               n =
+#else
+               (void)
+#endif
                rbtree_insert(&mesh->run, &s->run_node);
+               log_assert(n != NULL);
                return;
        }