From: Inki Dae Date: Wed, 11 Sep 2024 02:06:29 +0000 (+0900) Subject: common: fix coverity issue X-Git-Tag: accepted/tizen/unified/20240911.104743~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a168973cb103ad5d4300da05af42475cfbaed57;p=platform%2Fcore%2Fapi%2Fsingleo.git common: fix coverity issue Fix coverity issue - CID 1789473 - Using invalid iterator by dropping invalid iterator access. Change-Id: Ia7d251e13222b423e5718fe18f75666a7836be7b Signed-off-by: Inki Dae --- diff --git a/services/common/src/ServiceConfigParser.cpp b/services/common/src/ServiceConfigParser.cpp index 3eacacf..6cba42c 100644 --- 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; }