From 0d7ead46381da27f3b79e646434109ca4324ece8 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 6 Jun 2023 03:34:27 +0200 Subject: wildcard_cmp.c: Remove leftovers These statements had no effect since it was always executed when n == 0. --- wildcard_cmp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wildcard_cmp.c b/wildcard_cmp.c index c4743d3..dd9ff7a 100644 --- a/wildcard_cmp.c +++ b/wildcard_cmp.c @@ -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; - } } } -- cgit v1.2.3