libs/gst/net/gstnetclientclock.c: Initialize variable before using. Fixes #342820.

Original commit message from CVS:
* libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_start):
Initialize variable before using. Fixes #342820.
This commit is contained in:
Wim Taymans 2006-05-25 15:52:19 +00:00
parent 651061dfd9
commit 803ecd5d58
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2006-05-25 Wim Taymans <wim@fluendo.com>
* libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_start):
Initialize variable before using. Fixes #342820.
2006-05-24 Tim-Philipp Müller <tim at centricular dot net>
* libs/gst/base/gsttypefindhelper.c: (buf_helper_find_peek):

View file

@ -450,12 +450,13 @@ gst_net_client_clock_start (GstNetClientClock * self)
if (ret < 0)
goto getsockname_error;
GST_DEBUG_OBJECT (self, "socket opened on UDP port %hd",
ntohs (servaddr.sin_port));
memset (&servaddr, 0, sizeof (servaddr));
servaddr.sin_family = AF_INET; /* host byte order */
servaddr.sin_port = htons (self->port); /* short, network byte order */
GST_DEBUG_OBJECT (self, "socket opened on UDP port %hd",
ntohs (servaddr.sin_port));
if (!inet_aton (self->address, &servaddr.sin_addr))
goto bad_address;