[tracker] libtracker-data: Set defaults for return values in manager_init()
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Set defaults for return values in manager_init()
- Date: Mon, 2 Nov 2009 13:20:42 +0000 (UTC)
commit 2a2336b5de23b611a2b22b0cb3a804bfbdfeb163
Author: Martyn Russell <martyn lanedo com>
Date: Mon Nov 2 13:08:58 2009 +0000
libtracker-data: Set defaults for return values in manager_init()
src/libtracker-data/tracker-data-manager.c | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index e534081..69f5042 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -731,14 +731,23 @@ create_fts_table (TrackerDBInterface *iface)
}
gboolean
-tracker_data_manager_init (TrackerDBManagerFlags flags,
- const gchar *test_schema,
- gboolean *first_time,
- gboolean *need_journal)
+tracker_data_manager_init (TrackerDBManagerFlags flags,
+ const gchar *test_schema,
+ gboolean *first_time,
+ gboolean *need_journal)
{
TrackerDBInterface *iface;
gboolean is_first_time_index;
+ /* First set defaults for return values */
+ if (first_time) {
+ *first_time = FALSE;
+ }
+
+ if (need_journal) {
+ *need_journal = FALSE;
+ }
+
if (initialized) {
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]