From 1f14a425d0e6af4c36d63a93442a75b3203fa46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 4 Dec 2011 13:04:35 +0000 Subject: [PATCH] net: initialise GError variables to NULL --- libs/gst/net/gstnetclientclock.c | 2 +- libs/gst/net/gstnettimeprovider.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/gst/net/gstnetclientclock.c b/libs/gst/net/gstnetclientclock.c index dc56b4f09d..9a0e397db2 100644 --- a/libs/gst/net/gstnetclientclock.c +++ b/libs/gst/net/gstnetclientclock.c @@ -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); diff --git a/libs/gst/net/gstnettimeprovider.c b/libs/gst/net/gstnettimeprovider.c index 8e3e7f6d1e..dacdd87f25 100644 --- a/libs/gst/net/gstnettimeprovider.c +++ b/libs/gst/net/gstnettimeprovider.c @@ -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;