projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6f87ad
)
quirks: fix a logical error checking for A..Z
author
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 9 Sep 2020 01:55:57 +0000
(11:55 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 9 Sep 2020 03:57:39 +0000
(13:57 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/quirks.c
patch
|
blob
|
history
diff --git
a/src/quirks.c
b/src/quirks.c
index 45d1f554bc3b74790299bfa9a96b05c492a498bc..8ec5109426da16402dee17e4897217001cdb57a7 100644
(file)
--- a/
src/quirks.c
+++ b/
src/quirks.c
@@
-916,7
+916,7
@@
parse_file(struct quirks_context *ctx, const char *path)
break;
default:
/* 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",
path, lineno, line);
goto out;