[master] bc5967289 gc duplicate initialization

Nils Goroll nils.goroll at uplex.de
Thu Oct 18 13:46:08 UTC 2018


commit bc59672891cff5eae54cd9ccfc6fb557c252d0a5
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu Oct 18 15:41:57 2018 +0200

    gc duplicate initialization
    
    we INIT_OBJ the v1l, which includes a memset(0)

diff --git a/bin/varnishd/http1/cache_http1_line.c b/bin/varnishd/http1/cache_http1_line.c
index 7897cca4c..50a38e5cd 100644
--- a/bin/varnishd/http1/cache_http1_line.c
+++ b/bin/varnishd/http1/cache_http1_line.c
@@ -114,9 +114,6 @@ V1L_Open(struct worker *wrk, struct ws *ws, int *fd, struct vsl_log *vsl,
 	v1l->iov = (void*)ws->f;
 	v1l->siov = u;
 	v1l->ciov = u;
-	v1l->werr = 0;
-	v1l->liov = 0;
-	v1l->niov = 0;
 	v1l->wfd = fd;
 	v1l->t0 = t0;
 	v1l->vsl = vsl;


More information about the varnish-commit mailing list