]> git.meshlink.io Git - meshlink/blobdiff - test/import-export.c
Fix warnings and missing mutex/cond initialization in the test suite.
[meshlink] / test / import-export.c
index 599e4c1422bf004adde7097a1b54b9f0f15fcb24..15e213447eedd211f643aba6a2608e9939db7aef 100644 (file)
@@ -23,6 +23,8 @@ static void status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool reach
 }
 
 int main(void) {
+       init_sync_flag(&bar_reachable);
+
        meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
 
        // Open two new meshlink instance.