Fix issues from static analysis 05/258705/2
authorTomasz Swierczek <t.swierczek@samsung.com>
Mon, 24 May 2021 11:48:16 +0000 (13:48 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Fri, 28 May 2021 06:28:42 +0000 (06:28 +0000)
Change-Id: I25fbddde6d1ea649217e77095fff1cc546ad16da

capi/src/privilege_db_manager.c

index 71eba39899ec5f2108bdde9ff89fd9c3ec912996..72aaee867f6b894ac5fe1bfc4772603d5b6194c8 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright(c) 2013-2020 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright(c) 2013-2021 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0(the License);
  * you may not use this file except in compliance with the License.
@@ -911,7 +911,7 @@ int privilege_db_manager_unset_package_privilege_info(const uid_t uid, const cha
 
        TRY_INIT_DB(PRIVILEGE_DB_TYPE_PRIVACY_RW, &db);
 
-       char* sql = sql = sqlite3_mprintf("delete from privacy_package where pkg_id = %Q and uid = %d", pkgid, uid);
+       char* sql = sqlite3_mprintf("delete from privacy_package where pkg_id = %Q and uid = %d", pkgid, uid);
 
        TRY_PREPARE_STMT(db, sql, &stmt);