1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

fnmatch: remove dead code

There was a duplicate check for backslashes in the setcharset()
function.

Coverity CID 1420611
This commit is contained in:
Daniel Stenberg 2017-11-06 09:01:53 +01:00
parent cbb22cb76d
commit 6e6bf60357
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -235,12 +235,7 @@ static int setcharset(unsigned char **p, unsigned char *charset)
return SETCHARSET_FAIL;
break;
case CURLFNM_SCHS_MAYRANGE2:
if(c == '\\') {
c = *(++(*p));
if(!ISPRINT(c))
return SETCHARSET_FAIL;
}
else if(c == ']') {
if(c == ']') {
return SETCHARSET_OK;
}
else if(c == '\\') {