X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ef990547781931de315e21501eaafa920d0687d6..8164c2d758134b0e83cded911ddd43ce07dc8ead:/src/kernel/routing/NetZoneImpl.cpp diff --git a/src/kernel/routing/NetZoneImpl.cpp b/src/kernel/routing/NetZoneImpl.cpp index a9e952e08e..9609323bf8 100644 --- a/src/kernel/routing/NetZoneImpl.cpp +++ b/src/kernel/routing/NetZoneImpl.cpp @@ -315,8 +315,7 @@ bool NetZoneImpl::getBypassRoute(routing::NetPoint* src, routing::NetPoint* dst, void NetZoneImpl::getGlobalRoute(routing::NetPoint* src, routing::NetPoint* dst, /* OUT */ std::vector* links, double* latency) { - s_sg_platf_route_cbarg_t route; - memset(&route, 0, sizeof(route)); + s_sg_platf_route_cbarg_t route{}; XBT_DEBUG("Resolve route from '%s' to '%s'", src->getCname(), dst->getCname());