~kaniini/pkgconf

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

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

Details
Message ID
<ZWHGh-rPYNCrN8TPu0R6KNmAy67_smFX4KPxIcBJDehvO20DWTW8E5hggB7nBEiwr1kTTTR4b67wf8fiOVPbAfOpUibh7AodbLtg_eW83CY=@protonmail.com>
DKIM signature
missing
Download raw message
Patch: +1 -1
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
---
 libpkgconf/pkg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libpkgconf/pkg.c b/libpkgconf/pkg.c
index d91ccde..12e6362 100644
--- a/libpkgconf/pkg.c
+++ b/libpkgconf/pkg.c
@@ -99,7 +99,7 @@ pkgconf_pkg_parser_version_func(const pkgconf_client_t *client, pkgconf_pkg_t *p
	/* cut at any detected whitespace */
	p = pkgconf_tuple_parse(client, &pkg->vars, value);

	len = strcspn(p, " \t\r\n");
	len = strcspn(p, " \t");
	if (len)
	{
		i = p + (ptrdiff_t) len;
--
2.26.1
Reply to thread Export thread (mbox)