[master] 92f372d Always initialise err
Federico G. Schwindt
fgsch at lodoss.net
Tue May 30 23:00:07 CEST 2017
commit 92f372d50c2f1683b3dbd06db5734a7ea145d173
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Tue May 30 21:48:29 2017 +0100
Always initialise err
If txrst is used without -err we want a valid error.
Spotted by msan.
diff --git a/bin/varnishtest/vtc_http2.c b/bin/varnishtest/vtc_http2.c
index 7b5f3e2..a24dd1e 100644
--- a/bin/varnishtest/vtc_http2.c
+++ b/bin/varnishtest/vtc_http2.c
@@ -1706,7 +1706,7 @@ cmd_txrst(CMD_ARGS)
{
struct stream *s;
char *p;
- uint32_t err;
+ uint32_t err = 0;
struct frame f;
(void)cmd;
CAST_OBJ_NOTNULL(s, priv, STREAM_MAGIC);
More information about the varnish-commit
mailing list