From f5c88b87340a6852263cac90c2efb969169285e4 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Tue, 31 May 2016 09:21:26 +0200 Subject: [PATCH] [simix] Fix std:string construction from nullptr --- src/simix/SynchroExec.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/simix/SynchroExec.cpp b/src/simix/SynchroExec.cpp index 31d8dd499c..2e04846d1f 100644 --- a/src/simix/SynchroExec.cpp +++ b/src/simix/SynchroExec.cpp @@ -9,7 +9,8 @@ simgrid::simix::Exec::Exec(const char*name, sg_host_t hostarg) { - this->name = name; + if (name) + this->name = name; this->state = SIMIX_RUNNING; this->host = hostarg; } -- 2.20.1