projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27dbc47
)
Make our getaddrinfo implementation initialize "struct addrinfo" return
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 28 Feb 2010 22:31:17 +0000
(22:31 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 28 Feb 2010 22:31:17 +0000
(22:31 +0000)
value to NULL on errors.
Originally committed as revision 22122 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/os_support.c
patch
|
blob
|
history
diff --git
a/libavformat/os_support.c
b/libavformat/os_support.c
index
fd6af33
..
4bf2e26
100644
(file)
--- 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;