[tracker] 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] libtracker-db: Fix critical when removing all database files
- Date: Fri, 16 Jul 2010 09:56:20 +0000 (UTC)
commit eeb25b7579f60edb444d251c0c97f7d911235244
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 4f0a26e..0aa3492 100644
--- a/src/libtracker-db/tracker-db-manager.c
+++ b/src/libtracker-db/tracker-db-manager.c
@@ -464,6 +464,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]