Mercurial > libavformat.hg
diff udp.c @ 5731:c5a662ed3ab5 libavformat
Explicitly set struct addrinfo to NULL if getaddrinfo failed instead of
assuming getaddrinfo will have done this.
author | reimar |
---|---|
date | Sun, 28 Feb 2010 22:33:22 +0000 |
parents | 1a89eae96a27 |
children | b1a108ca71c5 |
line wrap: on
line diff
--- a/udp.c Sun Feb 28 22:31:17 2010 +0000 +++ b/udp.c Sun Feb 28 22:33:22 2010 +0000 @@ -159,6 +159,7 @@ hints.ai_family = family; hints.ai_flags = flags; if ((error = getaddrinfo(node, service, &hints, &res))) { + res = NULL; av_log(NULL, AV_LOG_ERROR, "udp_resolve_host: %s\n", gai_strerror(error)); }