projects
/
platform
/
core
/
system
/
buxton2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d84fa6e
)
fix wrong errno return issue
70/99570/1
author
Jiwoong Im
<jiwoong.im@samsung.com>
Wed, 23 Nov 2016 09:12:15 +0000
(18:12 +0900)
committer
Jiwoong Im
<jiwoong.im@samsung.com>
Wed, 23 Nov 2016 09:12:15 +0000
(18:12 +0900)
Change-Id: Ie8e4b19304a577645f9b3ab3c21d5cbf6f500832
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
backend/sqlite.c
patch
|
blob
|
history
diff --git
a/backend/sqlite.c
b/backend/sqlite.c
index
95d2a3f
..
13268ec
100644
(file)
--- a/
backend/sqlite.c
+++ b/
backend/sqlite.c
@@
-40,10
+40,13
@@
static GHashTable *dbs;
static void free_db(sqlite3 *db)
{
+ int errno_backup;
if (!db)
return;
- sqlite3_close(db);
+ errno_backup = errno;
+ if (sqlite3_close(db) == SQLITE_OK)
+ errno = errno_backup;
}
static sqlite3 *open_sqlite3(const char *dbpath, bool readonly)