diff options
author | Rafal Galka <r.galka@samsung.com> | 2015-08-26 11:48:05 +0200 |
---|---|---|
committer | Rafal Galka <r.galka@samsung.com> | 2015-08-26 11:48:05 +0200 |
commit | ff3d6dbf89bed17aef7ec44b00297645d5f48049 (patch) | |
tree | 5a031af4bbbd5143173a88b1b67bc4eba7961dc0 | |
parent | 9806deaec75c3509d6a47e6b3849c4b8b560c021 (diff) | |
download | app-svc-tizen_3.0.m1_tv.tar.gz app-svc-tizen_3.0.m1_tv.tar.bz2 app-svc-tizen_3.0.m1_tv.zip |
Fix - user db not initializedtizen_3.0.m1_tv_releasetizen_3.0.m1_mobile_releasesubmit/tizen_common/20151026.085049submit/tizen_common/20151023.083358submit/tizen_common/20151019.135620submit/tizen_common/20151015.190624submit/tizen/20150831.023242accepted/tizen/wearable/20150831.064200accepted/tizen/tv/20150831.064149accepted/tizen/mobile/20150831.064136tizen_3.0.m1_tvtizen_3.0.m1_mobile
Change-Id: Ia63a18f6dbe3591d0ac3221a733478e5ee6d53bd
Signed-off-by: Rafal Galka <r.galka@samsung.com>
-rwxr-xr-x | src/appsvc_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/appsvc_db.c b/src/appsvc_db.c index 0d1f6af..3781581 100755 --- a/src/appsvc_db.c +++ b/src/appsvc_db.c @@ -160,7 +160,7 @@ static int __init(uid_t uid) return 0; } - rc = sqlite3_open_v2(getUserSvcDB(uid), &svc_db, SQLITE_OPEN_READONLY, NULL); + rc = sqlite3_open_v2(getUserSvcDB(uid), &svc_db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL); if(rc) { _E("Can't open database: %s", sqlite3_errmsg(svc_db)); goto err; |