summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunjee Kim <hj0426.kim@samsung.com>2019-12-30 10:44:34 +0900
committerHyunjee Kim <hj0426.kim@samsung.com>2019-12-30 10:44:45 +0900
commit74c6314ea7b87115504ca7818a43d62036b843a1 (patch)
treebe5e383bf06372505816f6b0341a2769215f1a7a
parent7b40c2ad218c2d15f33556b7bc1a29bb14d41b93 (diff)
downloadlibslp-db-util-74c6314ea7b87115504ca7818a43d62036b843a1.tar.gz
libslp-db-util-74c6314ea7b87115504ca7818a43d62036b843a1.tar.bz2
libslp-db-util-74c6314ea7b87115504ca7818a43d62036b843a1.zip
Change-Id: I1643b7eed366160bed9600fa0244d41f2113d42b Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
-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;
}