aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_sqlite.c
diff options
context:
space:
mode:
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);