From 1e1c2737f9b2feb79b3152b35eee4d51c351dc2d Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Tue, 10 Dec 2019 09:36:08 +0900 Subject: [PATCH] Fix static analysis issue Fix using of invalid iterator Change-Id: I63268f34caf3917737f69ae0dea1620665fce35c Signed-off-by: Ilho Kim --- src/common/plugins/types/category_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/plugins/types/category_plugin.cc b/src/common/plugins/types/category_plugin.cc index 2e8af5bb..e3dd2c85 100644 --- a/src/common/plugins/types/category_plugin.cc +++ b/src/common/plugins/types/category_plugin.cc @@ -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; -- 2.34.1