tracker r1764 - branches/indexer-split/src/libtracker-db
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1764 - branches/indexer-split/src/libtracker-db
- Date: Wed, 25 Jun 2008 12:07:02 +0000 (UTC)
Author: pvanhoof
Date: Wed Jun 25 12:07:02 2008
New Revision: 1764
URL: http://svn.gnome.org/viewvc/tracker?rev=1764&view=rev
Log:
Added a dbc assertion
Modified:
branches/indexer-split/src/libtracker-db/tracker-db-manager.c
Modified: branches/indexer-split/src/libtracker-db/tracker-db-manager.c
==============================================================================
--- branches/indexer-split/src/libtracker-db/tracker-db-manager.c (original)
+++ branches/indexer-split/src/libtracker-db/tracker-db-manager.c Wed Jun 25 12:07:02 2008
@@ -133,6 +133,8 @@
FALSE },
};
+static gboolean db_manager_had_init = FALSE;
+
static gboolean db_exec_no_reply (TrackerDBInterface *iface,
const gchar *query,
...);
@@ -2444,6 +2446,8 @@
va_list args;
TrackerDBInterface *connection = NULL;
+ g_return_val_if_fail (initialized != FALSE, NULL);
+
va_start (args, num);
for (n_args = 1; n_args <= num; n_args++) {
TrackerDB db = va_arg (args, TrackerDB);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]