[master] 8e4be28 Remove useless memcpy

Guillaume Quintard guillaume at varnish-software.com
Tue Feb 14 10:56:05 CET 2017


commit 8e4be28310e11a67ca65561286537e02e0e6d7a9
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date:   Tue Feb 14 10:28:29 2017 +0100

    Remove useless memcpy

diff --git a/bin/varnishtest/vtc_h2_hpack.c b/bin/varnishtest/vtc_h2_hpack.c
index 695d2d7..a0b14d0 100644
--- a/bin/varnishtest/vtc_h2_hpack.c
+++ b/bin/varnishtest/vtc_h2_hpack.c
@@ -266,7 +266,6 @@ str_decode(struct hpk_iter *iter, struct txt *t)
 		/* XXX: do we care? */
 		t->ptr = realloc(t->ptr, num + 1L);
 		AN(t->ptr);
-		memcpy(t->ptr, t->ptr, num);
 	} else { /* literal string */
 		t->huff = 0;
 		t->ptr = malloc(num + 1L);



More information about the varnish-commit mailing list