Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Actually, do not initialize at all the buffer to build the logs in the log event...
[simgrid.git] / include / xbt / log.h
index efbd868..c28fbd0 100644 (file)
@@ -266,8 +266,8 @@ struct xbt_log_event_s {
   const char* fileName;
   const char* functionName;
   int lineNum;
-  char buffer[1024];
   va_list ap;
+  char buffer[1024];
 };
 
 /**
@@ -400,7 +400,7 @@ extern xbt_log_layout_t xbt_log_default_layout;
 #define _XBT_LOG_PRE(catv, priority) do {                       \
      if (_XBT_LOG_ISENABLEDV(catv, priority)) {                  \
          s_xbt_log_event_t _log_ev =                             \
-             {NULL,priority,__FILE__,_XBT_FUNCTION,__LINE__,{'\0'}}; \
+             {NULL,priority,__FILE__,_XBT_FUNCTION,__LINE__}; \
                 _log_ev.cat = &(catv);                           \
               _xbt_log_event_log(&_log_ev                       \