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:
parent
86d6aff25f
commit
dc9f4c8fc3
2
parser.c
2
parser.c
@ -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 == '{') {
|
||||
|
Loading…
Reference in New Issue
Block a user