From c546aafc0ae25ebe376be0c312bab1a028727fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Tue, 11 Oct 2022 17:44:47 +0800 Subject: [PATCH] Fix "Although the value stored to 'pos' is used in the enclosing expression, the value is never actually read from 'pos'" --- src/psl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/psl.c b/src/psl.c index a5896fb..8dfc8ed 100644 --- a/src/psl.c +++ b/src/psl.c @@ -936,13 +936,11 @@ static int is_public_suffix(const psl_ctx_t *psl, const char *domain, int type) } if ((suffix.label = strchr(suffix.label, '.'))) { - int pos; - suffix.label++; suffix.length = strlen(suffix.label); suffix.nlabels--; - rule = vector_get(psl->suffixes, (pos = vector_find(psl->suffixes, &suffix))); + rule = vector_get(psl->suffixes, vector_find(psl->suffixes, &suffix)); if (rule) { /* check for correct rule type */