diff --git a/libavformat/udp.c b/libavformat/udp.c index 8412eebad5..e87cd140ba 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -325,7 +325,7 @@ static int udp_socket_create(UDPContext *s, struct sockaddr_storage *addr, socklen_t *addr_len, const char *localaddr) { int udp_fd = -1; - struct addrinfo *res0 = NULL, *res = NULL; + struct addrinfo *res0, *res; int family = AF_UNSPEC; if (((struct sockaddr *) &s->dest_addr)->sa_family)