[master] eaca897 Check pthread_cond_init's return
Guillaume Quintard
guillaume at varnish-software.com
Tue Feb 14 10:56:05 CET 2017
commit eaca897b57404855b2145007ee2e0b06417c1eff
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date: Tue Feb 14 10:14:13 2017 +0100
Check pthread_cond_init's return
diff --git a/bin/varnishtest/vtc_http2.c b/bin/varnishtest/vtc_http2.c
index aef46dd..26af037 100644
--- a/bin/varnishtest/vtc_http2.c
+++ b/bin/varnishtest/vtc_http2.c
@@ -2556,7 +2556,7 @@ stream_new(const char *name, struct http *h)
ALLOC_OBJ(s, STREAM_MAGIC);
AN(s);
- pthread_cond_init(&s->cond, NULL);
+ AZ(pthread_cond_init(&s->cond, NULL));
REPLACE(s->name, name);
AN(name);
VTAILQ_INIT(&s->fq);
More information about the varnish-commit
mailing list