Commit eaca897b authored by Guillaume Quintard's avatar Guillaume Quintard

Check pthread_cond_init's return

parent 607e1890
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment