avformat/udp: remove unneeded variable initialization
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 16 Aug 2014 13:50:27 +0000 (15:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 16 Aug 2014 13:58:40 +0000 (15:58 +0200)
Found-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/udp.c

index 8412eeb..e87cd14 100644 (file)
@@ -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)