[tracker/tracker-0.10] tracker-control: Fix crash when unable to get miner pause details
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-control: Fix crash when unable to get miner pause details
- Date: Thu, 6 Oct 2011 16:43:31 +0000 (UTC)
commit c88329eceaf162dfa593bb300746d56859b741d5
Author: JÃrg Billeter <j bitron ch>
Date: Tue Jun 28 15:05:12 2011 +0200
tracker-control: Fix crash when unable to get miner pause details
Fixes NB#269359.
src/tracker-control/tracker-control-status.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-control/tracker-control-status.c b/src/tracker-control/tracker-control-status.c
index 18674e0..b1b78f5 100644
--- a/src/tracker-control/tracker-control-status.c
+++ b/src/tracker-control/tracker-control-status.c
@@ -142,6 +142,12 @@ miner_get_details (TrackerMinerManager *manager,
pause_applications,
pause_reasons);
+ if (!(*pause_applications) || !(*pause_reasons)) {
+ /* unable to get pause details,
+ already logged by tracker_miner_manager_is_paused */
+ return FALSE;
+ }
+
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]