Commit 01198002 authored by Nils Goroll's avatar Nils Goroll

polish blob.same and blob.equal

If two blob pointers compare equal, the blobs are both the same and
equal - both being NULL is implied.
parent 1babec2d
......@@ -483,7 +483,7 @@ vmod_same(VRT_CTX, VCL_BLOB b1, VCL_BLOB b2)
{
(void) ctx;
if (b1 == NULL && b2 == NULL)
if (b1 == b2)
return 1;
if (b1 == NULL || b2 == NULL)
return 0;
......@@ -495,7 +495,7 @@ vmod_equal(VRT_CTX, VCL_BLOB b1, VCL_BLOB b2)
{
(void) ctx;
if (b1 == NULL && b2 == NULL)
if (b1 == b2)
return 1;
if (b1 == NULL || b2 == NULL)
return 0;
......
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