projects
/
platform
/
core
/
appfw
/
app-installers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f397344
)
Fix static analysis issue
87/228587/2
author
Ilho Kim
<ilho159.kim@samsung.com>
Tue, 10 Dec 2019 00:36:08 +0000
(09:36 +0900)
committer
Ilho Kim
<ilho159.kim@samsung.com>
Tue, 24 Mar 2020 08:35:48 +0000
(17:35 +0900)
Fix using of invalid iterator
Change-Id: I63268f34caf3917737f69ae0dea1620665fce35c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
(cherry picked from commit
1e1c2737f9b2feb79b3152b35eee4d51c351dc2d
)
src/common/plugins/types/category_plugin.cc
patch
|
blob
|
history
diff --git
a/src/common/plugins/types/category_plugin.cc
b/src/common/plugins/types/category_plugin.cc
index
c1d96f9
..
997d939
100644
(file)
--- 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;