[tracker/journal-compression-review: 10/15] libtracker-db: Fix critical when removing all database files
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/journal-compression-review: 10/15] libtracker-db: Fix critical when removing all database files
- Date: Thu, 24 Jun 2010 13:41:52 +0000 (UTC)
commit 9355b9f0f86ad1c6c81cd249e0dce514496d67a6
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 dda6194..3788b6e 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]