X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fresource-container%2Fexamples%2FContainerSample.cpp;h=32397b79657ae412a4a33affa69b8b2f7b801422;hb=3c093548382bb2542c87a67e6e5fa32552c29cb3;hp=4d1c2df243ff701bd114d23478078b63ffb3cb90;hpb=0395af52e09cf8a745e0e8aae4e1fa77af74f36d;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/resource-container/examples/ContainerSample.cpp b/service/resource-container/examples/ContainerSample.cpp index 4d1c2df..32397b7 100644 --- a/service/resource-container/examples/ContainerSample.cpp +++ b/service/resource-container/examples/ContainerSample.cpp @@ -68,7 +68,7 @@ RCSResourceContainer *g_pResourceContainer = nullptr; void getCurrentPath(std::string *pPath) { - char buffer[MAX_PATH]; + char buffer[MAX_PATH] = {0,}; if (!pPath->empty()) { @@ -95,7 +95,7 @@ void getCurrentPath(std::string *pPath) int processUserInput(int min, int max) { - int input; + int input = 0; std::cin >> input;