From: Guus Sliepen Date: Fri, 12 Jun 2020 07:09:52 +0000 (+0200) Subject: Add missing initialization of a condition variable. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=61701fc35b1708fba93e7559e34339937bbc26ff;p=meshlink Add missing initialization of a condition variable. --- 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);