diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-17 20:08:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-17 20:08:15 +0000 |
commit | e452c722e830617352fed1ee003248ce00c108f4 (patch) | |
tree | 3359ab3844ceae623419f890bebcd2d00d932fd4 /src/datastore/plugin_datastore_sqlite.c | |
parent | c51f6c8caf68ed993eb70c58e52d47ca231a594a (diff) | |
download | gnunet-e452c722e830617352fed1ee003248ce00c108f4.tar.gz gnunet-e452c722e830617352fed1ee003248ce00c108f4.zip |
fixes
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index bcd5c7e2d..22e5df095 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, | |||
519 | { | 519 | { |
520 | static struct GNUNET_TIME_Absolute zero; | 520 | static struct GNUNET_TIME_Absolute zero; |
521 | struct NextContext * nc= next_cls; | 521 | struct NextContext * nc= next_cls; |
522 | struct Plugin *plugin = nc->plugin; | 522 | struct Plugin *plugin; |
523 | unsigned long long rowid; | 523 | unsigned long long rowid; |
524 | sqlite3_stmt *stmtd; | 524 | sqlite3_stmt *stmtd; |
525 | int ret; | 525 | int ret; |
@@ -531,6 +531,7 @@ sqlite_next_request (void *next_cls, | |||
531 | const GNUNET_HashCode *key; | 531 | const GNUNET_HashCode *key; |
532 | const void *data; | 532 | const void *data; |
533 | 533 | ||
534 | plugin = nc->plugin; | ||
534 | sqlite3_reset (nc->stmt); | 535 | sqlite3_reset (nc->stmt); |
535 | if ( (GNUNET_YES == end_it) || | 536 | if ( (GNUNET_YES == end_it) || |
536 | (GNUNET_YES == nc->end_it) || | 537 | (GNUNET_YES == nc->end_it) || |
@@ -784,7 +785,7 @@ iter_next_prepare (void *cls, | |||
784 | struct NextContext *nc) | 785 | struct NextContext *nc) |
785 | { | 786 | { |
786 | struct IterContext *ic = cls; | 787 | struct IterContext *ic = cls; |
787 | struct Plugin *plugin = nc->plugin; | 788 | struct Plugin *plugin; |
788 | int ret; | 789 | int ret; |
789 | 790 | ||
790 | if (nc == NULL) | 791 | if (nc == NULL) |
@@ -793,6 +794,7 @@ iter_next_prepare (void *cls, | |||
793 | sqlite3_finalize (ic->stmt_2); | 794 | sqlite3_finalize (ic->stmt_2); |
794 | return GNUNET_SYSERR; | 795 | return GNUNET_SYSERR; |
795 | } | 796 | } |
797 | plugin = nc->plugin; | ||
796 | if (ic->is_prio) | 798 | if (ic->is_prio) |
797 | { | 799 | { |
798 | sqlite3_bind_int (ic->stmt_1, 1, nc->lastPriority); | 800 | sqlite3_bind_int (ic->stmt_1, 1, nc->lastPriority); |