[tracker/wip/carlosg/portal: 16/16] tracker: Initialize variable



commit c0f05ffef750cc182747057b280cfbfba12aa681
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]