Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
It is now possible to read/write the RNG state in a file.
[simgrid.git] / src / xbt / log.cpp
index 0f28f5d473cd40bc8253db04b51f7faac9167058..ef3fd942cd354a4ed24216208a5645cb739a914f 100644 (file)
@@ -175,6 +175,7 @@ void _xbt_log_event_log(xbt_log_event_t ev, const char *fmt, ...)
       va_start(ev->ap, fmt);
       done = cat->layout->do_layout(cat->layout, ev, fmt);
       va_end(ev->ap);
+      ev->buffer = nullptr; // Calm down, static analyzers, this pointer to local array wont leak out of the scope.
       if (done) {
         appender->do_append(appender, buff);
       } else {