diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-02-28 22:31:17 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-02-28 22:31:17 +0000 |
commit | a34fc5e23d53f560e4445de84af010c1be6aa8a6 (patch) | |
tree | be8a681f637b7b029f25507ee6d69369143a9f27 | |
parent | 27dbc47c05e07486feba1ab829db584da2159648 (diff) | |
download | ffmpeg-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.c | 1 |
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; |