Commit e22de573 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Use CHECK_OBJ_ORNULL().


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2050 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent bc7a5c8f
......@@ -181,8 +181,7 @@ exp_prefetch(void *arg)
while (1) {
LOCK(&exp_mtx);
o = binheap_root(exp_heap);
if (o != NULL)
CHECK_OBJ(o, OBJECT_MAGIC);
CHECK_OBJ_ORNULL(o, OBJECT_MAGIC);
if (o == NULL || o->ttl > t + expearly) {
UNLOCK(&exp_mtx);
AZ(sleep(1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment