[FFmpeg-cvslog] r22122 - trunk/libavformat/os_support.c

reimar subversion
Sun Feb 28 23:31:17 CET 2010


Author: reimar
Date: Sun Feb 28 23:31:17 2010
New Revision: 22122

Log:
Make our getaddrinfo implementation initialize "struct addrinfo" return
value to NULL on errors.

Modified:
   trunk/libavformat/os_support.c

Modified: trunk/libavformat/os_support.c
==============================================================================
--- trunk/libavformat/os_support.c	Sun Feb 28 23:22:22 2010	(r22121)
+++ trunk/libavformat/os_support.c	Sun Feb 28 23:31:17 2010	(r22122)
@@ -78,6 +78,7 @@ int ff_getaddrinfo(const char *node, con
         return win_getaddrinfo(node, service, hints, res);
 #endif
 
+    *res = NULL;
     sin = av_mallocz(sizeof(struct sockaddr_in));
     if (!sin)
         return EAI_FAIL;



More information about the ffmpeg-cvslog mailing list