Fix defects detected by static analysis
authorParkhi <h_w.park@samsung.com>
Fri, 9 Dec 2016 06:44:07 +0000 (15:44 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 14 Dec 2016 08:18:06 +0000 (08:18 +0000)
Change-Id: Iee6f843db1602d0a6fcc0bd43841d306d4a7257c
Signed-off-by: Parkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15331
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: Senthil Kumar G S <senthil.gs@samsung.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit f36c71f082f9e5eca0249a30d3f8104f726d27b1)
Reviewed-on: https://gerrit.iotivity.org/gerrit/15557

service/easy-setup/mediator/richsdk/src/EnrolleeSecurity.cpp

index fac771a..e20c521 100755 (executable)
@@ -135,7 +135,8 @@ namespace OIC
                 if (std::string::npos == dot) // MAC
                 {
                     size_t semi_count = std::count(host_token.begin(), host_token.end(), ':');
-                    if (semi_count > 5) {
+                    if (semi_count > 5)
+                    {
                         size_t found_semi = host_token.find_last_of(':');
                         host_token = host_token.substr(0, found_semi);
                     }