Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix null pointer dereference.
[simgrid.git] / src / kernel / routing / DijkstraZone.cpp
index 02cf5c2..a63574b 100644 (file)
@@ -27,7 +27,7 @@ public:
 };
 
 DijkstraZone::DijkstraZone(NetZoneImpl* father, std::string name, resource::NetworkModel* netmodel, bool cached)
-    : RoutedZone(father, name, netmodel), cached_(cached)
+    : RoutedZone(father, std::move(name), netmodel), cached_(cached)
 {
 }