summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpackaging/libslp-db-util.spec2
-rw-r--r--util_func.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/packaging/libslp-db-util.spec b/packaging/libslp-db-util.spec
index 84ef3fe..d44b309 100755
--- a/packaging/libslp-db-util.spec
+++ b/packaging/libslp-db-util.spec
@@ -1,6 +1,6 @@
Name: libslp-db-util
Version: 0.1.1
-Release: 5
+Release: 6
License: Apache-2.0
Summary: DB Utility
Group: Application Framework/Database
diff --git a/util_func.c b/util_func.c
index cd6c87c..ac0dcff 100644
--- a/util_func.c
+++ b/util_func.c
@@ -145,13 +145,10 @@ int db_util_open_with_options(const char *pszFilePath, sqlite3 **ppDB,
int db_util_close(sqlite3 *pDB)
{
- char *pszErrorMsg = NULL;
-
/* Close DB */
int rc = sqlite3_close(pDB);
if (SQLITE_OK != rc) {
- DB_UTIL_TRACE_WARNING("Fail to change journal mode: %s\n", pszErrorMsg);
- sqlite3_free(pszErrorMsg);
+ DB_UTIL_TRACE_WARNING("Fail to close DB\n");
return rc;
}