Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
dead2668
Commit
dead2668
authored
Jun 19, 2020
by
Matthieu Schaller
Browse files
Zero the output list structures before filling them.
parent
78d705ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/output_list.c
View file @
dead2668
...
...
@@ -330,6 +330,7 @@ void output_list_init(struct output_list **list, const struct engine *e,
/* Read output_list for snapshots */
*
list
=
(
struct
output_list
*
)
malloc
(
sizeof
(
struct
output_list
));
bzero
(
*
list
,
sizeof
(
struct
output_list
));
(
*
list
)
->
output_list_on
=
output_list_on
;
/* Read filename */
...
...
src/output_options.c
View file @
dead2668
...
...
@@ -51,6 +51,8 @@ const char* compression_level_names[compression_level_count] = {
void
output_options_init
(
struct
swift_params
*
parameter_file
,
int
mpi_rank
,
struct
output_options
*
output_options
)
{
bzero
(
output_options
,
sizeof
(
struct
output_options
));
/* Load select_output */
struct
swift_params
*
select_output
=
(
struct
swift_params
*
)
malloc
(
sizeof
(
struct
swift_params
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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