mirror of
https://github.com/lammertb/libhttp.git
synced 2025-08-17 22:21:06 +03:00
civetweb.c: remove dead assignment of 'res' in match_prefix()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
@@ -1265,7 +1265,6 @@ static int match_prefix(const char *pattern, int pattern_len, const char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
i = j = 0;
|
i = j = 0;
|
||||||
res = -1;
|
|
||||||
for (; i < pattern_len; i++, j++) {
|
for (; i < pattern_len; i++, j++) {
|
||||||
if (pattern[i] == '?' && str[j] != '\0') {
|
if (pattern[i] == '?' && str[j] != '\0') {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user