[master] d6fc838 Assert that we got storage

Poul-Henning Kamp phk at FreeBSD.org
Fri Nov 29 10:46:08 CET 2013


commit d6fc838c4903b502e5b8d9e41564dddf7a0f8bfd
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Nov 29 09:39:16 2013 +0000

    Assert that we got storage

diff --git a/lib/libvarnishapi/vsl_dispatch.c b/lib/libvarnishapi/vsl_dispatch.c
index 43a8243..ed1d0f4 100644
--- a/lib/libvarnishapi/vsl_dispatch.c
+++ b/lib/libvarnishapi/vsl_dispatch.c
@@ -331,6 +331,7 @@ chunk_newbuf(struct vtx *vtx, const uint32_t *ptr, size_t len)
 	struct chunk *chunk;
 
 	ALLOC_OBJ(chunk, CHUNK_MAGIC);
+	XXXAN(chunk);
 	chunk->type = chunk_t_buf;
 	chunk->vtx = vtx;
 	chunk->buf.space = VTX_BUFSIZE_MIN;




More information about the varnish-commit mailing list