[FFmpeg-cvslog] r22123 - trunk/libavformat/udp.c

reimar subversion
Sun Feb 28 23:33:22 CET 2010


Author: reimar
Date: Sun Feb 28 23:33:22 2010
New Revision: 22123

Log:
Explicitly set struct addrinfo to NULL if getaddrinfo failed instead of
assuming getaddrinfo will have done this.

Modified:
   trunk/libavformat/udp.c

Modified: trunk/libavformat/udp.c
==============================================================================
--- trunk/libavformat/udp.c	Sun Feb 28 23:31:17 2010	(r22122)
+++ trunk/libavformat/udp.c	Sun Feb 28 23:33:22 2010	(r22123)
@@ -159,6 +159,7 @@ static struct addrinfo* udp_resolve_host
     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));
     }
 



More information about the ffmpeg-cvslog mailing list