From: Guus Sliepen Date: Sun, 6 Dec 2020 15:18:18 +0000 (+0100) Subject: Add missing calls to init_sync_flag() in test cases. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=5b5e1456905850d03638621328dff994876458c2;p=meshlink Add missing calls to init_sync_flag() in test cases. --- diff --git a/test/blacklist.c b/test/blacklist.c index 5fa0f98d..cd545853 100644 --- a/test/blacklist.c +++ b/test/blacklist.c @@ -57,6 +57,7 @@ static void bar_blacklisted_cb(meshlink_handle_t *mesh, meshlink_node_t *node) { int main(void) { init_sync_flag(&bar_connected); init_sync_flag(&bar_disconnected); + init_sync_flag(&bar_blacklisted); init_sync_flag(&baz_connected); meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb); diff --git a/test/import-export.c b/test/import-export.c index b3ac8410..15981ed9 100644 --- a/test/import-export.c +++ b/test/import-export.c @@ -33,6 +33,7 @@ static void pmtu_cb(meshlink_handle_t *mesh, meshlink_node_t *node, uint16_t pmt int main(void) { init_sync_flag(&bar_reachable); + init_sync_flag(&pmtu_flag); meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);