wildcard_cmp.c: Remove leftovers

These statements had no effect since it was always executed when
n == 0.
This commit is contained in:
Xavier Del Campo Romero 2023-06-06 03:34:27 +02:00
parent 6e5c001c28
commit 0d7ead4638
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 0 additions and 4 deletions

View File

@ -37,15 +37,11 @@ int wildcard_cmp(const char *s, const char *p, const bool casecmp)
if (!cmp(wca, sa))
{
p = wc + 1;
s += n;
}
else if (next == '*')
p++;
else
{
s++;
p += n;
}
}
}