Fix "Although the value stored to 'pos' is used in the enclosing expression, the value is never actually read from 'pos'"

This commit is contained in:
Cœur 2022-10-11 17:44:47 +08:00 committed by Tim Rühsen
parent b9503b64c3
commit c546aafc0a
1 changed files with 1 additions and 3 deletions

View File

@ -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 */