diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index d4dd5ff8..2987a5bd 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c @@ -463,8 +463,7 @@ static int add_ip_port_connection(Net_Crypto *c, int crypt_connection_id, IP_Por */ static IP_Port return_ip_port_connection(Net_Crypto *c, int crypt_connection_id) { - IP_Port empty; - empty.ip.family = 0; + const IP_Port empty = {{0}}; Crypto_Connection *conn = get_crypto_connection(c, crypt_connection_id);