diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-07-16 20:34:29 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-07-16 20:34:29 +0000 |
commit | a469d96ede1395f99d25b84fc8a58d871267c944 (patch) | |
tree | 829938e9fe6e69c2ae442f9e3439e5aa765e0e61 /src/datastore/plugin_datastore_sqlite.c | |
parent | a65536c402d5d7f707e66f5c0e5ca572c447cfac (diff) |
checkret
git-svn-id: https://gnunet.org/svn/gnunet@16045 140774ce-b5e7-0310-ab8b-a85725594a96
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 6a2a86b61a..7c7c49468a 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c @@ -589,8 +589,10 @@ sqlite_plugin_update (void *cls, sqlite3_bind_int64 (plugin->updPrio, 2, expire.abs_value); sqlite3_bind_int64 (plugin->updPrio, 3, uid); n = sqlite3_step (plugin->updPrio); - sqlite3_reset (plugin->updPrio); - switch (n) + if (SQLITE_OK != sqlite3_reset (plugin->updPrio)) + LOG_SQLITE (plugin, NULL, + GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, "sqlite3_reset"); + switch (n) { case SQLITE_DONE: #if DEBUG_SQLITE |