aboutsummaryrefslogtreecommitdiff
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-07-20 23:52:55 +0200
commitd639e5d269453f06e6c7faf87b271e0098193503 (patch)
tree47a566b6869e13795a658b0c0a03d63009348db8
parent35ced95c363640c3f8cd86b60330fb68338101b8 (diff)
downloadlibweb-d639e5d269453f06e6c7faf87b271e0098193503.tar.gz
wildcard_cmp.c: Remove leftovers
These statements had no effect since it was always executed when n == 0.
-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;
- }
}
}