summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2016-06-03 11:05:20 +0200
committerNicolas George <george@nsup.org>2016-06-03 12:46:02 +0200
commit8b05a7ffe4d78c68cd0091aefa8b380c7c4afe7a (patch)
tree9bd59adb9eed60934d39457045bf66244a5db8aa /libavformat/udp.c
parent1f8c0e44cb17124d863c35cec4953de752b0d1af (diff)
downloadffmpeg-8b05a7ffe4d78c68cd0091aefa8b380c7c4afe7a.tar.gz
lavf/udp: fix dead code.
Since d607861, service can not be NULL, only "0". An UDP address with neither local port nor address leaves both service and node to their default value, and POSIX specifies that they are not allowed to be both NULL; "0" is equivalent to an unspecified port for all currently known protocols. Fix CID 1341570.
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 0f35689271..531e25466b 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -264,7 +264,7 @@ static struct addrinfo *udp_resolve_host(URLContext *h,
res = NULL;
av_log(h, AV_LOG_ERROR, "getaddrinfo(%s, %s): %s\n",
node ? node : "unknown",
- service ? service : "unknown",
+ service,
gai_strerror(error));
}