From 84d6c89b12efe4af20c21ced0e7775035b3d50e4 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Thu, 2 Oct 2014 16:19:46 +0200 Subject: [PATCH] [REG] Fix test logic to allow correct database creation Change-Id: I99cf34c5c23e493fea32e7651709ccb52acf9621 Signed-off-by: Baptiste DURAND --- src/ail_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ail_db.c b/src/ail_db.c index e67184e..1136a71 100755 --- a/src/ail_db.c +++ b/src/ail_db.c @@ -334,7 +334,7 @@ ail_error_e db_open(db_open_mode mode, uid_t uid) char *db = ail_get_app_DB(uid); char *global_db = ail_get_app_DB(GLOBAL_USER); - if (db, F_OK) { + if (access(db, F_OK)) { if (AIL_ERROR_OK == db_util_open_with_options(db, &dbInit, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL)) { for (i = 0; tbls[i] != NULL; i++) { -- 2.7.4