checkret
authorChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:34:29 +0000 (20:34 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:34:29 +0000 (20:34 +0000)
src/datastore/plugin_datastore_sqlite.c

index 6a2a86b61a9a3e10804cc92426017524bf36097c..7c7c49468ae4aede930395037e45e041305f5552 100644 (file)
@@ -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