aboutsummaryrefslogtreecommitdiff
path: root/wildcard_cmp.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-06-06 03:34:27 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-06-06 03:48:51 +0200
commit0d7ead46381da27f3b79e646434109ca4324ece8 (patch)
treef33a427c348d5f0523b18ac9d7431d65bc1a7dce /wildcard_cmp.c
parent6e5c001c287c51c558f4dc255d7a130937bd4777 (diff)
wildcard_cmp.c: Remove leftovers
These statements had no effect since it was always executed when n == 0.
Diffstat (limited to 'wildcard_cmp.c')
-rw-r--r--wildcard_cmp.c4
1 files changed, 0 insertions, 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;
- }
}
}