[tracker] tracker-control: Fix crash when unable to get miner pause details
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-control: Fix crash when unable to get miner pause details
- Date: Tue, 28 Jun 2011 13:07:04 +0000 (UTC)
commit 99269a1e3c0a77765ca496347c205b44b4051f48
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 42a2a92..9e11cd8 100644
--- a/src/tracker-control/tracker-control-status.c
+++ b/src/tracker-control/tracker-control-status.c
@@ -146,6 +146,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]