changeset 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 de3bbecc27ad
children 12baf46105f4
files udp.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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));
     }