aboutsummaryrefslogtreecommitdiff
path: root/libavformat/sapenc.c
diff options
context:
space:
mode:
authorDiego Biurrun2011-06-06 14:13:02 +0200
committerDiego Biurrun2012-03-28 09:38:33 +0200
commita92be9b856bd11b081041c43c25d442028fe9a63 (patch)
tree32f852fdf904a30238c789e57510be710eaa7826 /libavformat/sapenc.c
parent856c8e0a049dc7069b7504d3aaa48549c75852de (diff)
Replace memset(0) by zero initializations.
Also remove one pointless zero initialization in rangecoder.c.
Diffstat (limited to 'libavformat/sapenc.c')
-rw-r--r--libavformat/sapenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c
index dbd7bdb7b9..0913dd7a45 100644
--- a/libavformat/sapenc.c
+++ b/libavformat/sapenc.c
@@ -104,8 +104,7 @@ static int sap_write_header(AVFormatContext *s)
}
if (!announce_addr[0]) {
- struct addrinfo hints, *ai = NULL;
- memset(&hints, 0, sizeof(hints));
+ struct addrinfo hints = { 0 }, *ai = NULL;
hints.ai_family = AF_UNSPEC;
if (getaddrinfo(host, NULL, &hints, &ai)) {
av_log(s, AV_LOG_ERROR, "Unable to resolve %s\n", host);