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
903385a4
Commit
903385a4
authored
Nov 30, 2016
by
Matthieu Schaller
Browse files
Silence a valgrind warning in the parser.
parent
38ba1e95
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/parser.c
View file @
903385a4
...
...
@@ -680,8 +680,8 @@ void parser_print_params(const struct swift_params *params) {
void
parser_write_params_to_file
(
const
struct
swift_params
*
params
,
const
char
*
file_name
)
{
FILE
*
file
=
fopen
(
file_name
,
"w"
);
char
section
[
PARSER_MAX_LINE_SIZE
];
char
param_name
[
PARSER_MAX_LINE_SIZE
];
char
section
[
PARSER_MAX_LINE_SIZE
]
=
{
0
}
;
char
param_name
[
PARSER_MAX_LINE_SIZE
]
=
{
0
}
;
char
*
token
;
/* Start of file identifier in YAML. */
...
...
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