Fix static analysis issues 58/288158/1
authorjh9216.park <jh9216.park@samsung.com>
Mon, 13 Feb 2023 01:02:17 +0000 (20:02 -0500)
committerjh9216.park <jh9216.park@samsung.com>
Mon, 13 Feb 2023 01:02:17 +0000 (20:02 -0500)
Change-Id: I7089cd8230bd1617476118744e9ca9449e5e7930
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
tizen-database/database.hpp

index 2ac339e..2ed94fa 100644 (file)
@@ -187,7 +187,7 @@ class AutoDbType {
 
  private:
   DbType db_type_;
-  int real_type_;
+  int real_type_ = SQLITE_NULL;
 };
 
 using _ = AutoDbType;
@@ -652,7 +652,7 @@ class Database {
     sqlite3_stmt* stmt_ = nullptr;
     sqlite3* db_ = nullptr;
     std::string query_;
-    bool is_done_;
+    bool is_done_ = false;
   };
 
   Database(std::string db, int flags) {