[tracker/journal-compression-review: 10/12] libtracker-db: Fix critical when removing all database files
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/journal-compression-review: 10/12] libtracker-db: Fix critical when removing all database files
- Date: Wed, 23 Jun 2010 10:47:21 +0000 (UTC)
commit 5d07d204aeac0332db2b06a00c5f6511d2a05258
Author: Jürg Billeter <j bitron ch>
Date: Fri May 28 13:32:47 2010 +0200
libtracker-db: Fix critical when removing all database files
src/libtracker-db/tracker-db-manager.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-manager.c b/src/libtracker-db/tracker-db-manager.c
index f939104..fdcb9a0 100644
--- a/src/libtracker-db/tracker-db-manager.c
+++ b/src/libtracker-db/tracker-db-manager.c
@@ -461,6 +461,9 @@ db_manager_remove_all (gboolean rm_journal)
const gchar *f_name;
journal_dir = g_dir_open (dirs[i], 0, NULL);
+ if (!journal_dir) {
+ continue;
+ }
f_name = g_dir_read_name (journal_dir);
/* Remove rotated chunks */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]