mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 13:38:40 +02:00
quirks: fix a logical error checking for A..Z
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c6f87ade84
commit
f00e388686
1 changed files with 1 additions and 1 deletions
|
|
@ -916,7 +916,7 @@ parse_file(struct quirks_context *ctx, const char *path)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* entries must start with A-Z */
|
/* entries must start with A-Z */
|
||||||
if (line[0] < 'A' && line[0] > 'Z') {
|
if (line[0] < 'A' || line[0] > 'Z') {
|
||||||
qlog_parser(ctx, "%s:%d: Unexpected line %s\n",
|
qlog_parser(ctx, "%s:%d: Unexpected line %s\n",
|
||||||
path, lineno, line);
|
path, lineno, line);
|
||||||
goto out;
|
goto out;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue