[openrtm-commit:02408] r2932 - branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 2月 8日 (水) 15:53:55 JST


Author: sec_fukai
Date: 2017-02-08 15:53:55 +0900 (Wed, 08 Feb 2017)
New Revision: 2932

Modified:
   branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Logger.h
Log:
[compat,->DEV_IQ_2016]Modify coding style. refs #3816

Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Logger.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Logger.h	2017-02-08 06:46:50 UTC (rev 2931)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Logger.h	2017-02-08 06:53:55 UTC (rev 2932)
@@ -24,6 +24,7 @@
 #include <coil/Guard.h>
 
 #include <limits.h>
+#include <string.h>
 #include <fstream>
 #include <iostream>
 #include <string>
@@ -80,6 +81,7 @@
     log_streambuf()
       : streambuf_type()
     {
+      memset(m_buf, 0, BUFFER_LEN);
       char *pStart = m_buf;
       char *pEnd = m_buf + (BUFFER_LEN - 1);
       this->setp(pStart, pEnd);
@@ -518,7 +520,7 @@
 
     std::vector<Stream> m_streams;
     Mutex m_mutex;
-    char m_buf[BUFFER_LEN] = {'\0'};
+    char m_buf[BUFFER_LEN];
   };
 
 



More information about the openrtm-commit mailing list