Commit 903385a4 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Silence a valgrind warning in the parser.

parent 38ba1e95
......@@ -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. */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment