[master] a33ea4015 waiter: Adjust assertion based on usage

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Aug 9 15:09:06 UTC 2021


commit a33ea4015bb87ae42252e0f42c8d01b23e081675
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Aug 9 16:59:13 2021 +0200

    waiter: Adjust assertion based on usage
    
    This looks like a copy-pasta or autocomplete mistake.

diff --git a/bin/varnishd/waiter/waiter_priv.h b/bin/varnishd/waiter/waiter_priv.h
index e44c548b9..f0bef789c 100644
--- a/bin/varnishd/waiter/waiter_priv.h
+++ b/bin/varnishd/waiter/waiter_priv.h
@@ -63,7 +63,7 @@ struct waiter_impl {
 static inline double
 Wait_When(const struct waited *wp)
 {
-	CHECK_OBJ_ORNULL(wp, WAITED_MAGIC);
+	CHECK_OBJ_NOTNULL(wp, WAITED_MAGIC);
 	return (wp->idle + wp->tmo);
 }
 


More information about the varnish-commit mailing list