diff os_support.c @ 5730:de3bbecc27ad libavformat

Make our getaddrinfo implementation initialize "struct addrinfo" return value to NULL on errors.
author reimar
date Sun, 28 Feb 2010 22:31:17 +0000
parents a3e321e7ca38
children a292ef47e2f9
line wrap: on
line diff
--- a/os_support.c	Sun Feb 28 20:49:21 2010 +0000
+++ b/os_support.c	Sun Feb 28 22:31:17 2010 +0000
@@ -78,6 +78,7 @@
         return win_getaddrinfo(node, service, hints, res);
 #endif
 
+    *res = NULL;
     sin = av_mallocz(sizeof(struct sockaddr_in));
     if (!sin)
         return EAI_FAIL;