projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git]
/
service
/
resource-encapsulation
/
examples
/
linux
/
NestedAttributesServer.cpp
diff --git
a/service/resource-encapsulation/examples/linux/NestedAttributesServer.cpp
b/service/resource-encapsulation/examples/linux/NestedAttributesServer.cpp
index
66534f6
..
005e0a5
100644
(file)
--- a/
service/resource-encapsulation/examples/linux/NestedAttributesServer.cpp
+++ b/
service/resource-encapsulation/examples/linux/NestedAttributesServer.cpp
@@
-223,7
+223,7
@@
void initServer()
int processUserInput()
{
int processUserInput()
{
- int userInput;
+ int userInput
= 0
;
std::cin >> userInput;
if (std::cin.fail())
{
std::cin >> userInput;
if (std::cin.fail())
{
@@
-324,6
+324,10
@@
int main(void)
{
std::cout << "main exception : " << e.what() << std::endl;
}
{
std::cout << "main exception : " << e.what() << std::endl;
}
+ catch (...)
+ {
+ std::cout << "main exception : unknown" << std::endl;
+ }
std::cout << "Stopping the server" << std::endl;
}
std::cout << "Stopping the server" << std::endl;
}