mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
net: initialise GError variables to NULL
This commit is contained in:
parent
fef18639db
commit
1f14a425d0
2 changed files with 2 additions and 2 deletions
|
@ -423,7 +423,7 @@ gst_net_client_clock_start (GstNetClientClock * self)
|
|||
struct sockaddr_in servaddr, myaddr;
|
||||
socklen_t len;
|
||||
gint ret;
|
||||
GError *error;
|
||||
GError *error = NULL;
|
||||
|
||||
g_return_val_if_fail (self->address != NULL, FALSE);
|
||||
g_return_val_if_fail (self->servaddr == NULL, FALSE);
|
||||
|
|
|
@ -355,7 +355,7 @@ gst_net_time_provider_start (GstNetTimeProvider * self)
|
|||
socklen_t len;
|
||||
int port;
|
||||
gint ret;
|
||||
GError *error;
|
||||
GError *error = NULL;
|
||||
|
||||
if ((ret = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
|
||||
goto no_socket;
|
||||
|
|
Loading…
Reference in a new issue