From: Arnaud Giersch Date: Thu, 21 Nov 2013 20:41:56 +0000 (+0100) Subject: Correct condition. X-Git-Tag: v3_11_beta~233 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/530669c2712f635bba06f3eaa1819212ce68cd01 Correct condition. --- diff --git a/src/surf/surf_routing_dijkstra.cpp b/src/surf/surf_routing_dijkstra.cpp index 417e3c9df6..d56dff8059 100644 --- a/src/surf/surf_routing_dijkstra.cpp +++ b/src/surf/surf_routing_dijkstra.cpp @@ -435,7 +435,7 @@ void AsDijkstra::end() if(!p_graphNodeMap) p_graphNodeMap = xbt_dict_new_homogeneous(&graph_node_map_elem_free); - if (m_cached && p_routeCache) + if (m_cached && !p_routeCache) p_routeCache = xbt_dict_new_homogeneous(&route_cache_elem_free); /* Add the loopback if needed */