From: Christian Grothoff Date: Mon, 13 Mar 2017 17:09:28 +0000 (+0100) Subject: check sqlite3_close() return value in test X-Git-Tag: gnunet-0.11.0rc0~282^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7898eb1be882b49db0ed0613839d094c79c6275a;p=oweals%2Fgnunet.git check sqlite3_close() return value in test --- diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c index 5cc48b26c..dd79d0125 100644 --- a/src/datacache/plugin_datacache_sqlite.c +++ b/src/datacache/plugin_datacache_sqlite.c @@ -758,7 +758,8 @@ libgnunet_plugin_datacache_sqlite_init (void *cls) LOG_SQLITE (plugin->dbh, GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, "sq_prepare"); - (void) sqlite3_close (plugin->dbh); + GNUNET_break (SQLITE_OK == + sqlite3_close (plugin->dbh)); GNUNET_free (plugin); return NULL; } diff --git a/src/sq/test_sq.c b/src/sq/test_sq.c index 42c321666..6387eda31 100644 --- a/src/sq/test_sq.c +++ b/src/sq/test_sq.c @@ -271,7 +271,8 @@ main(int argc, "Failed to drop table\n"); ret = 1; } - sqlite3_close (dbh); + GNUNET_break (SQLITE_OK == + sqlite3_close (dbh)); if (0 != unlink ("test.db")) GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "unlink",