parser: explicitly initialize key (kanshi_output_field) to 0

This warning is tripped by GCC 10.
This commit is contained in:
Ariadne Conill 2020-12-17 05:24:27 -07:00 committed by Simon Ser
parent 9731ff9c79
commit f88ba3a1dd
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ static struct kanshi_profile_output *parse_profile_output(
output->name = strdup(parser->tok_str);
bool has_key = false;
enum kanshi_output_field key;
enum kanshi_output_field key = 0;
while (1) {
if (!parser_next_token(parser)) {
return NULL;