[openrtm-commit:02271] r2876 - in branches/DEV_IQ_2016/OpenRTM-aist/src/lib: coil/common rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 1月 19日 (木) 15:46:54 JST
Author: sec_fukai
Date: 2017-01-19 15:46:54 +0900 (Thu, 19 Jan 2017)
New Revision: 2876
Modified:
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/stringutil.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NVUtil.cpp
Log:
[incompat,->DEV_IQ_2016]Initialize parameter. refs #3797
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/stringutil.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/stringutil.h 2017-01-19 06:39:45 UTC (rev 2875)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/stringutil.h 2017-01-19 06:46:54 UTC (rev 2876)
@@ -730,7 +730,7 @@
{
std::stringstream s;
if ((s << std::hex << str).fail()) { return false; }
- uintptr_t intval;
+ uintptr_t intval = 0;
if ((s >> intval).fail()) { return false; }
ptr = reinterpret_cast<T*>(intval);
if (ptr == NULL) { return false; }
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NVUtil.cpp
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NVUtil.cpp 2017-01-19 06:39:45 UTC (rev 2875)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NVUtil.cpp 2017-01-19 06:46:54 UTC (rev 2876)
@@ -244,7 +244,7 @@
{
CORBA::Any value;
value = find(nv, name);
- const char* str_value;
+ const char* str_value = NULL;
return value >>= str_value;
}
catch (...)
More information about the openrtm-commit
mailing list