summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-25 12:51:20 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-25 12:51:20 +0000
commit8605d7090e49358a534386140ab98ea359d7a8f5 (patch)
treea93f6efd91399121f6a4f32f5d281befc4b07e4c /libvo
parent99caf8cc681401665b5c3f3f49c015738be0be9f (diff)
downloadmpv-8605d7090e49358a534386140ab98ea359d7a8f5.tar.bz2
mpv-8605d7090e49358a534386140ab98ea359d7a8f5.tar.xz
Use memset to make sure all parts of struct sockaddr_in are always initialized.
Problem reported by [kmkaplan+mplayer-dev-eng (at) kim kim-minh com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28732 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_bl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvo/vo_bl.c b/libvo/vo_bl.c
index a194ade17a..bacec3acbb 100644
--- a/libvo/vo_bl.c
+++ b/libvo/vo_bl.c
@@ -177,6 +177,7 @@ static int udp_init(bl_host_t *h) {
}
h->fd = -1;
+ memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(h->port);