From 42671001c4218f44f514e56e0abc534e570b2e26 Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Tue, 19 Dec 2017 09:54:54 +0900 Subject: [PATCH] Fix incorrect return value comparison code Change-Id: I850f0d7d14ae50fae67f8adab77971a10bd2fd37 --- ism/src/isf_query_utility.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ism/src/isf_query_utility.cpp b/ism/src/isf_query_utility.cpp index 7343511..9a04532 100644 --- a/ism/src/isf_query_utility.cpp +++ b/ism/src/isf_query_utility.cpp @@ -254,7 +254,8 @@ static inline int _db_init(void) return -EINVAL; } - if (!_db_create_table()) { + /* The _db_create_table() returns 0 on success */ + if (_db_create_table() != 0) { LOGE ("CREATE TABLE IF NOT EXISTS ime_info ~ failed."); if (databaseInfo.pHandle) db_util_close(databaseInfo.pHandle); -- 2.7.4