aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_sqlite.c
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2009-07-17 20:08:15 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2009-07-17 20:08:15 +0000
commita22aa174aa7d9e876327eb88cb7fdc6c90568532 (patch)
tree3359ab3844ceae623419f890bebcd2d00d932fd4 /src/datastore/plugin_datastore_sqlite.c
parent83604df774d67500e6865d6524a9df4b0ed0ebca (diff)
fixes
git-svn-id: https://gnunet.org/svn/gnunet@8737 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r--src/datastore/plugin_datastore_sqlite.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c
index bcd5c7e2d2..22e5df095e 100644
--- a/src/datastore/plugin_datastore_sqlite.c
+++ b/src/datastore/plugin_datastore_sqlite.c
@@ -519,7 +519,7 @@ sqlite_next_request (void *next_cls,
{
static struct GNUNET_TIME_Absolute zero;
struct NextContext * nc= next_cls;
- struct Plugin *plugin = nc->plugin;
+ struct Plugin *plugin;
unsigned long long rowid;
sqlite3_stmt *stmtd;
int ret;
@@ -531,6 +531,7 @@ sqlite_next_request (void *next_cls,
const GNUNET_HashCode *key;
const void *data;
+ plugin = nc->plugin;
sqlite3_reset (nc->stmt);
if ( (GNUNET_YES == end_it) ||
(GNUNET_YES == nc->end_it) ||
@@ -784,7 +785,7 @@ iter_next_prepare (void *cls,
struct NextContext *nc)
{
struct IterContext *ic = cls;
- struct Plugin *plugin = nc->plugin;
+ struct Plugin *plugin;
int ret;
if (nc == NULL)
@@ -793,6 +794,7 @@ iter_next_prepare (void *cls,
sqlite3_finalize (ic->stmt_2);
return GNUNET_SYSERR;
}
+ plugin = nc->plugin;
if (ic->is_prio)
{
sqlite3_bind_int (ic->stmt_1, 1, nc->lastPriority);