[tracker/wip/carlosg/portal: 35/36] tracker: Initialize variable
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/portal: 35/36] tracker: Initialize variable
- Date: Fri, 17 Jul 2020 11:44:06 +0000 (UTC)
commit 97c0c7a2ebbbaf96f28509da4a2e2aee586dea2f
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Jul 5 19:28:57 2020 +0200
tracker: Initialize variable
Autoptr variables must get initialized properly.
src/tracker/tracker-endpoint.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker/tracker-endpoint.c b/src/tracker/tracker-endpoint.c
index 7fc157f7b..f617e686b 100644
--- a/src/tracker/tracker-endpoint.c
+++ b/src/tracker/tracker-endpoint.c
@@ -123,7 +123,7 @@ run_endpoint (TrackerSparqlConnection *connection,
{
TrackerEndpoint *endpoint = NULL;
GDBusConnection *dbus_connection;
- g_autoptr(GMainLoop) main_loop;
+ g_autoptr(GMainLoop) main_loop = NULL;
GError *inner_error = NULL;
g_print (_("Creating endpoint at %s…"), dbus_service);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]