Skip to content
Snippets Groups Projects
Commit 903385a4 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Silence a valgrind warning in the parser.

parent 38ba1e95
No related branches found
No related tags found
No related merge requests found
......@@ -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. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment