Commit eac7dffe authored by Parkhi's avatar Parkhi Committed by Uze Choi

Fix defects detected by static code analyzer

Change-Id: I63dbeed58bae6c943ce8374685bcdaea867ec57e
Signed-off-by: default avatarParkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17975Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
Reviewed-by: default avatarJihun Ha <jihun.ha@samsung.com>
Tested-by: default avatarUze Choi <uzchoi@samsung.com>
parent f5e1970d
......@@ -220,7 +220,7 @@ namespace OIC
bool ret = false;
std::string subOwnerID;
char uuidString[UUID_STRING_SIZE];
char uuidString[UUID_STRING_SIZE] = {};
OicSecSubOwner_t* subOwnerList = foundDevice->getDevPtr()->doxm->subOwners;
......
......@@ -404,7 +404,7 @@ void discoveryEnrolleeResource()
std::unique_lock<std::mutex> lck(g_discoverymtx);
g_cond.wait_for(lck, std::chrono::seconds(5));
}
}
catch (OCException &e)
{
std::cout << "Exception in discoveryEnrolleeResource: "<<e.what();
......
......@@ -401,11 +401,11 @@ void discoveryEnrolleeResource()
std::unique_lock<std::mutex> lck(g_discoverymtx);
g_cond.wait_for(lck, std::chrono::seconds(5));
}
catch (OCException& e)
{
std::cout << "Exception in discoveryEnrolleeResource: "<<e.what();
}
}
catch (OCException& e)
{
std::cout << "Exception in discoveryEnrolleeResource: "<<e.what();
}
}
void DisplayMenu()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment