From 7898eb1be882b49db0ed0613839d094c79c6275a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 13 Mar 2017 18:09:28 +0100 Subject: [PATCH] check sqlite3_close() return value in test --- src/datacache/plugin_datacache_sqlite.c | 3 ++- src/sq/test_sq.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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", -- 2.25.1