Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Elsa Gonsiorowski
codes
Commits
351a5de3
Commit
351a5de3
authored
Jul 31, 2014
by
Jonathan Jenkins
Browse files
fix - pointer to local buffer escaped
parent
4e19d940
Changes
2
Show whitespace changes
Inline
Side-by-side
src/models/networks/model-net/dragonfly.c
View file @
351a5de3
...
@@ -803,7 +803,7 @@ terminal_init( terminal_state * s,
...
@@ -803,7 +803,7 @@ terminal_init( terminal_state * s,
s
->
params
=
&
all_params
[
num_params
-
1
];
s
->
params
=
&
all_params
[
num_params
-
1
];
}
}
else
{
else
{
s
->
anno
=
anno
;
s
->
anno
=
strdup
(
anno
)
;
int
id
=
configuration_get_annotation_index
(
anno
,
anno_map
);
int
id
=
configuration_get_annotation_index
(
anno
,
anno_map
);
s
->
params
=
&
all_params
[
id
];
s
->
params
=
&
all_params
[
id
];
}
}
...
@@ -1517,7 +1517,7 @@ void router_setup(router_state * r, tw_lp * lp)
...
@@ -1517,7 +1517,7 @@ void router_setup(router_state * r, tw_lp * lp)
r
->
params
=
&
all_params
[
num_params
-
1
];
r
->
params
=
&
all_params
[
num_params
-
1
];
}
}
else
{
else
{
r
->
anno
=
anno
;
r
->
anno
=
strdup
(
anno
)
;
int
id
=
configuration_get_annotation_index
(
anno
,
anno_map
);
int
id
=
configuration_get_annotation_index
(
anno
,
anno_map
);
r
->
params
=
&
all_params
[
id
];
r
->
params
=
&
all_params
[
id
];
}
}
...
...
src/models/networks/model-net/torus.c
View file @
351a5de3
...
@@ -359,7 +359,7 @@ static void torus_init( nodes_state * s,
...
@@ -359,7 +359,7 @@ static void torus_init( nodes_state * s,
s
->
params
=
&
all_params
[
num_params
-
1
];
s
->
params
=
&
all_params
[
num_params
-
1
];
}
}
else
{
else
{
s
->
anno
=
anno
;
s
->
anno
=
strdup
(
anno
)
;
int
id
=
configuration_get_annotation_index
(
anno
,
anno_map
);
int
id
=
configuration_get_annotation_index
(
anno
,
anno_map
);
s
->
params
=
&
all_params
[
id
];
s
->
params
=
&
all_params
[
id
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment