1
0
mirror of https://github.com/emersion/kanshi synced 2024-11-26 05:55:27 +01:00

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

@ -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;