1
0
mirror of https://github.com/emersion/kanshi synced 2024-11-22 15:51:58 +01:00

Fix parser_next_token return value

Returning a negative value in a function with bool as return value
is the same as returning true. Fix this by returning false to indicate
failure.
This commit is contained in:
Rikard Falkeborn 2020-02-22 20:40:45 +01:00 committed by Simon Ser
parent 86d6aff25f
commit dc9f4c8fc3

@ -144,7 +144,7 @@ static bool parser_next_token(struct kanshi_parser *parser) {
while (1) {
int ch = parser_read_char(parser);
if (ch < 0) {
return ch;
return false;
}
if (ch == '{') {