Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix a test
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 15 Mar 2016 13:04:06 +0000 (14:04 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 15 Mar 2016 13:06:07 +0000 (14:06 +0100)
src/surf/surf_routing.cpp

index 69ab7ea..8b0b806 100644 (file)
@@ -65,7 +65,7 @@ simgrid::surf::RoutingPlatf *routing_platf = NULL;
 void sg_platf_new_trace(sg_platf_trace_cbarg_t trace)
 {
   tmgr_trace_t tmgr_trace;
-  if (!trace->file || strcmp(trace->file, "") != 0) {
+  if (trace->file && strcmp(trace->file, "") != 0) {
     tmgr_trace = tmgr_trace_new_from_file(trace->file);
   } else {
     xbt_assert(strcmp(trace->pc_data, ""),