summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-16 15:50:27 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-16 15:58:40 +0200
commit74c81106d231295ca0d4e8afdfb347ae1e9fb8a9 (patch)
treee7a3783540fa6c62a639abac91a4ecac45eff15d /libavformat/udp.c
parent7916053cedb4975faf54710d1edd5409b0ca5410 (diff)
avformat/udp: remove unneeded variable initialization
Found-by: James Darnley <james.darnley@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c2
1 files changed, 1 insertions, 1 deletions
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)