quirks: fix a logical error checking for A..Z

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-09-09 11:55:57 +10:00
parent c6f87ade84
commit f00e388686

View file

@ -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;