From 61701fc35b1708fba93e7559e34339937bbc26ff Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 12 Jun 2020 09:09:52 +0200 Subject: [PATCH] Add missing initialization of a condition variable. --- src/meshlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/meshlink.c b/src/meshlink.c index 92246694..d3cf36ad 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -1461,6 +1461,7 @@ meshlink_handle_t *meshlink_open_ex(const meshlink_open_params_t *params) { assert(pthread_mutexattr_init(&attr) == 0); assert(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE) == 0); assert(pthread_mutex_init(&mesh->mutex, &attr) == 0); + assert(pthread_cond_init(&mesh->cond, NULL) == 0); assert(pthread_mutex_init(&mesh->discovery_mutex, NULL) == 0); assert(pthread_cond_init(&mesh->discovery_cond, NULL) == 0); -- 2.39.2