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:
parent
9731ff9c79
commit
f88ba3a1dd
2
parser.c
2
parser.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user