projects
/
platform
/
core
/
api
/
singleo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d530428
)
common: fix coverity issue
84/317484/2
author
Inki Dae
<inki.dae@samsung.com>
Wed, 11 Sep 2024 02:06:29 +0000
(11:06 +0900)
committer
Inki Dae
<inki.dae@samsung.com>
Wed, 11 Sep 2024 03:58:47 +0000
(12:58 +0900)
Fix coverity issue - CID
1789473
- Using invalid iterator by dropping
invalid iterator access.
Change-Id: Ia7d251e13222b423e5718fe18f75666a7836be7b
Signed-off-by: Inki Dae <inki.dae@samsung.com>
services/common/src/ServiceConfigParser.cpp
patch
|
blob
|
history
diff --git
a/services/common/src/ServiceConfigParser.cpp
b/services/common/src/ServiceConfigParser.cpp
index 3eacacf0e8d6bff57429fcafc46298170e7b31b7..6cba42c1f1fd7883716b25587d242beda1efc0d3 100644
(file)
--- a/
services/common/src/ServiceConfigParser.cpp
+++ b/
services/common/src/ServiceConfigParser.cpp
@@
-190,7
+190,7
@@
void ServiceConfigParser::update()
auto it = _params.find(key);
if (it == _params.end()) {
if (key == "SERVICE") // "SERVICE is mandatorily required but optional for other."
- throw InvalidParameter(
string("Invalid ") + key + ": " + it->second
);
+ throw InvalidParameter(
"Invalid " + key
);
else
return;
}