[tracker/tracker-0.12] 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.12] tracker-control: Fix crash when unable to get miner pause details
- Date: Thu, 20 Oct 2011 12:44:45 +0000 (UTC)
commit a63bebce10224f2b13183698d02aab5ad5659307
Author: JÃrg Billeter <j bitron ch>
Date: Mon Oct 17 10:23:14 2011 +0200
tracker-control: Fix crash when unable to get miner pause details
src/tracker-control/tracker-control-miners.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-control/tracker-control-miners.c b/src/tracker-control/tracker-control-miners.c
index b683cf2..176152d 100644
--- a/src/tracker-control/tracker-control-miners.c
+++ b/src/tracker-control/tracker-control-miners.c
@@ -374,6 +374,12 @@ miner_pause_details (void)
&pause_applications,
&pause_reasons);
+ if (!pause_applications || !pause_reasons) {
+ /* unable to get pause details,
+ already logged by tracker_miner_manager_is_paused */
+ continue;
+ }
+
if (!(*pause_applications) || !(*pause_reasons)) {
g_strfreev (pause_applications);
g_strfreev (pause_reasons);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]