changeset 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 aef0883e3445
children c5a662ed3ab5
files os_support.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;