[tracker/binary-log-2: 32/45] libtracker-db: Fix journal reader error handling
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/binary-log-2: 32/45] libtracker-db: Fix journal reader error handling
- Date: Fri, 8 Jan 2010 11:27:57 +0000 (UTC)
commit e52e60140bbd995934304c152a8f70c11e0e22fb
Author: Jürg Billeter <j bitron ch>
Date: Wed Jan 6 15:14:24 2010 +0100
libtracker-db: Fix journal reader error handling
src/libtracker-db/tracker-db-journal.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index 899111a..def2e82 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -558,11 +558,12 @@ tracker_db_journal_reader_init (const gchar *filename)
reader.file = g_mapped_file_new (reader.filename, FALSE, &error);
if (error) {
- g_warning ("Could not create TrackerDBJournalEntry for file '%s', %s",
+ g_warning ("Could not create TrackerDBJournalReader for file '%s', %s",
reader.filename,
error->message ? error->message : "no error given");
g_error_free (error);
- tracker_db_journal_reader_shutdown ();
+ g_free (reader.filename);
+ reader.filename = NULL;
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]