[tracker/journal-compression] 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] libtracker-db: Fix critical when removing all database files
- Date: Fri, 28 May 2010 11:47:33 +0000 (UTC)
commit 919a9c263812f947559f172150d01f571b0fbf32
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 b2fd3b4..26c3d1c 100644
--- a/src/libtracker-db/tracker-db-manager.c
+++ b/src/libtracker-db/tracker-db-manager.c
@@ -458,6 +458,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]