A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Strings are already dup'ed by caller.
[simgrid.git]
/
src
/
surf
/
surf_routing_floyd.c
diff --git
a/src/surf/surf_routing_floyd.c
b/src/surf/surf_routing_floyd.c
index
e094d6c
..
95292f8
100644
(file)
--- a/
src/surf/surf_routing_floyd.c
+++ b/
src/surf/surf_routing_floyd.c
@@
-340,8
+340,8
@@
void model_floyd_parse_route(AS_t rc, const char *src,
{
if(route->dst_gateway && route->src_gateway)
{
- char *gw_src =
xbt_strdup(route->src_gateway)
;
- char *gw_dst =
xbt_strdup(route->dst_gateway)
;
+ char *gw_src =
route->src_gateway
;
+ char *gw_dst =
route->dst_gateway
;
route->src_gateway = gw_dst;
route->dst_gateway = gw_src;
}