r284 - trunk/varnish-cache/lib/libvarnish
phk at projects.linpro.no
phk at projects.linpro.no
Mon Jul 3 17:01:14 CEST 2006
Author: phk
Date: 2006-07-03 17:01:14 +0200 (Mon, 03 Jul 2006)
New Revision: 284
Modified:
trunk/varnish-cache/lib/libvarnish/binary_heap.c
Log:
more asserts
Modified: trunk/varnish-cache/lib/libvarnish/binary_heap.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/binary_heap.c 2006-07-03 14:39:40 UTC (rev 283)
+++ trunk/varnish-cache/lib/libvarnish/binary_heap.c 2006-07-03 15:01:14 UTC (rev 284)
@@ -136,6 +136,7 @@
{
unsigned u;
+ assert(bh != NULL);
assert(bh->magic == BINHEAP_MAGIC);
assert(bh->length >= bh->next);
if (bh->length == bh->next) {
@@ -158,6 +159,7 @@
binheap_root(struct binheap *bh)
{
+ assert(bh != NULL);
assert(bh->magic == BINHEAP_MAGIC);
if(bh->next == 0)
return (NULL);
@@ -168,6 +170,7 @@
binheap_delete(struct binheap *bh, unsigned idx)
{
+ assert(bh != NULL);
assert(bh->magic == BINHEAP_MAGIC);
assert(bh->next > 0);
assert(idx < bh->next);
More information about the varnish-commit
mailing list