net: initialise GError variables to NULL

This commit is contained in:
Tim-Philipp Müller 2011-12-04 13:04:35 +00:00
parent fef18639db
commit 1f14a425d0
2 changed files with 2 additions and 2 deletions

View file

@ -423,7 +423,7 @@ gst_net_client_clock_start (GstNetClientClock * self)
struct sockaddr_in servaddr, myaddr; struct sockaddr_in servaddr, myaddr;
socklen_t len; socklen_t len;
gint ret; gint ret;
GError *error; GError *error = NULL;
g_return_val_if_fail (self->address != NULL, FALSE); g_return_val_if_fail (self->address != NULL, FALSE);
g_return_val_if_fail (self->servaddr == NULL, FALSE); g_return_val_if_fail (self->servaddr == NULL, FALSE);

View file

@ -355,7 +355,7 @@ gst_net_time_provider_start (GstNetTimeProvider * self)
socklen_t len; socklen_t len;
int port; int port;
gint ret; gint ret;
GError *error; GError *error = NULL;
if ((ret = socket (AF_INET, SOCK_DGRAM, 0)) < 0) if ((ret = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
goto no_socket; goto no_socket;