[tracker/gdbus-porting-rebased] libtracker-miner: Bugfix when status is unset in tracker-miner-object.c



commit f0992f942a5f3d9ed1c92cfccc93cf1f9f9e33b4
Author: Philip Van Hoof <philip codeminded be>
Date:   Wed Jan 12 15:53:12 2011 +0100

    libtracker-miner: Bugfix when status is unset in tracker-miner-object.c

 src/libtracker-miner/tracker-miner-object.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-object.c b/src/libtracker-miner/tracker-miner-object.c
index 1632694..3220022 100644
--- a/src/libtracker-miner/tracker-miner-object.c
+++ b/src/libtracker-miner/tracker-miner-object.c
@@ -862,7 +862,7 @@ handle_method_call_get_status (TrackerMiner          *miner,
 
 	tracker_dbus_request_end (request, NULL);
 	g_dbus_method_invocation_return_value (invocation,
-	                                       g_variant_new ("(s)", miner->private->status));
+	                                       miner->private->status ? g_variant_new ("(s)", miner->private->status) : NULL);
 
 }
 



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