[tracker/gdbus-porting] libtracker-miner: Use GError already defined when initialising



commit b99fb5b485c07557ffd14e265c603e3458081418
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Jan 4 10:20:54 2011 +0000

    libtracker-miner: Use GError already defined when initialising

 src/libtracker-miner/tracker-miner-manager.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-manager.c b/src/libtracker-miner/tracker-miner-manager.c
index 5a39921..cb1d7b2 100644
--- a/src/libtracker-miner/tracker-miner-manager.c
+++ b/src/libtracker-miner/tracker-miner-manager.c
@@ -299,7 +299,6 @@ tracker_miner_manager_init (TrackerMinerManager *manager)
 	for (m = priv->miners; m; m = m->next) {
 		GDBusProxy *proxy;
 		MinerData *data;
-		GError *p_error = NULL;
 
 		data = m->data;
 		data->connection = g_object_ref (priv->connection);
@@ -313,13 +312,13 @@ tracker_miner_manager_init (TrackerMinerManager *manager)
 		                               data->dbus_path,
 		                               TRACKER_MINER_DBUS_INTERFACE,
 		                               NULL,
-		                               &p_error);
+		                               &error);
 
 
-		if (p_error) {
+		if (error) {
 			g_critical ("Could not create proxy on the D-Bus session bus, %s",
-			            p_error ? p_error->message : "no error given.");
-			g_clear_error (&p_error);
+			            error ? error->message : "no error given.");
+			g_clear_error (&error);
 			continue;
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]