Do not complain about malformed whitespace from \n on Version line

Every version line has a newline at the end; the malformed whitespace checker
should just check for trailing spaces and tabs.

Resolves https://todo.sr.ht/~kaniini/pkgconf/15
master
Ben 2020-04-26 17:28:03 +00:00 committed by Ariadne Conill
parent fce1199b53
commit 011db1bb88
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ pkgconf_pkg_parser_version_func(const pkgconf_client_t *client, pkgconf_pkg_t *p
/* cut at any detected whitespace */ /* cut at any detected whitespace */
p = pkgconf_tuple_parse(client, &pkg->vars, value); p = pkgconf_tuple_parse(client, &pkg->vars, value);
len = strcspn(p, " \t\r\n"); len = strcspn(p, " \t");
if (len) if (len)
{ {
i = p + (ptrdiff_t) len; i = p + (ptrdiff_t) len;