Fix static analysis issue 61/219761/8
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 10 Dec 2019 00:36:08 +0000 (09:36 +0900)
committerilho kim <ilho159.kim@samsung.com>
Tue, 24 Mar 2020 07:38:48 +0000 (07:38 +0000)
Fix using of invalid iterator

Change-Id: I63268f34caf3917737f69ae0dea1620665fce35c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/common/plugins/types/category_plugin.cc

index 2e8af5bb8c829ae2d6fc72507417be03382ee211..e3dd2c8582b8b336943b5cdba97cd5545062076a 100644 (file)
@@ -135,7 +135,7 @@ bool CategoryPlugin::Run(xmlDocPtr /*doc_ptr*/, manifest_x* manifest,
                                      app->appid);
       if (iter != appid_list.end() && *iter == app->appid) {
         name = GetFunctionName(ActionType::Removed);
-        appid_list.erase(iter);
+        iter = appid_list.erase(iter);
         category_list = nullptr;
       } else {
         continue;