Fix build warning
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 10 Mar 2021 01:27:36 +0000 (10:27 +0900)
committer연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <jungh.yeon@samsung.com>
Wed, 10 Mar 2021 01:33:42 +0000 (10:33 +0900)
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/database/depinfo_db_handler.cc

index 1005174..13441d4 100644 (file)
@@ -47,7 +47,7 @@ int DepInfoGetDBHandler::Execute() {
   }
   GList *list = nullptr;
   std::vector<sqlite3*> conn_list = GetConnection();
-  int ret;
+  int ret = PMINFO_R_OK;
   for (auto& conn : conn_list) {
     ret = pkginfo_internal_filter_get_depends_on(
         conn, pkgid_.c_str(), &list);