diff --git a/tests/test_unbind_wildcard.cpp b/tests/test_unbind_wildcard.cpp index 93b6ccc2..8ca80a1c 100644 --- a/tests/test_unbind_wildcard.cpp +++ b/tests/test_unbind_wildcard.cpp @@ -22,9 +22,9 @@ int main (void) { setup_test_environment(); - int ipv6 = is_ipv6_available (); void *ctx = zmq_ctx_new (); assert (ctx); + int ipv6 = is_ipv6_available (); /* Address wildcard, IPv6 disabled */ void *sb = zmq_socket (ctx, ZMQ_REP);