[tracker/tracker-0.10] 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-0.10] tracker-control: Fix crash when unable to get miner pause details
- Date: Fri, 21 Oct 2011 14:24:46 +0000 (UTC)
commit 2450307ca538ff913fc52ef5889104ae7373cef2
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]