[master] 8bfa766 VMOD blob: clarify the docs for same() concerning empty BLOBs.

Geoff Simmons geoff at uplex.de
Mon Sep 11 22:47:04 UTC 2017


commit 8bfa76628dfff0d0bc1ca52d16e05760082333bd
Author: Geoff Simmons <geoff at uplex.de>
Date:   Tue Sep 12 00:46:02 2017 +0200

    VMOD blob: clarify the docs for same() concerning empty BLOBs.
    
    References #2421

diff --git a/lib/libvmod_blob/vmod.vcc b/lib/libvmod_blob/vmod.vcc
index 290e716..0f3dbb4 100644
--- a/lib/libvmod_blob/vmod.vcc
+++ b/lib/libvmod_blob/vmod.vcc
@@ -278,7 +278,8 @@ Example::
 $Function BOOL same(BLOB, BLOB)
 
 Returns true if and only if the two BLOB arguments are the same
-object, i.e. they specify exactly the same region of memory.
+object, i.e. they specify exactly the same region of memory, or both
+are empty.
 
 If the BLOBs are both empty (length is 0 and/or the internal pointer
 is NULL), then ``same()`` returns ``true``. If any non-empty BLOB


More information about the varnish-commit mailing list