]> git.meshlink.io Git - meshlink/blobdiff - test/blacklist.c
Fix warnings and missing mutex/cond initialization in the test suite.
[meshlink] / test / blacklist.c
index 8b081963bf2089fc7c7e7f0f4dcad1806c5bcdca..1f5cd605e936fafb9d7c076c68c6de8d34f72f89 100644 (file)
@@ -45,6 +45,10 @@ static void baz_status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool r
 }
 
 int main(void) {
+       init_sync_flag(&bar_connected);
+       init_sync_flag(&bar_disconnected);
+       init_sync_flag(&baz_connected);
+
        meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
 
        // Create three instances.