aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-02-28 22:31:17 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-02-28 22:31:17 +0000
commita34fc5e23d53f560e4445de84af010c1be6aa8a6 (patch)
treebe8a681f637b7b029f25507ee6d69369143a9f27
parent27dbc47c05e07486feba1ab829db584da2159648 (diff)
downloadffmpeg-a34fc5e23d53f560e4445de84af010c1be6aa8a6.tar.gz
Make our getaddrinfo implementation initialize "struct addrinfo" return
value to NULL on errors. Originally committed as revision 22122 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/os_support.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index fd6af3368a..4bf2e268cf 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -78,6 +78,7 @@ int ff_getaddrinfo(const char *node, const char *service,
return win_getaddrinfo(node, service, hints, res);
#endif
+ *res = NULL;
sin = av_mallocz(sizeof(struct sockaddr_in));
if (!sin)
return EAI_FAIL;