mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
fnmatch: remove dead code
There was a duplicate check for backslashes in the setcharset() function. Coverity CID 1420611
This commit is contained in:
parent
cbb22cb76d
commit
6e6bf60357
@ -235,12 +235,7 @@ static int setcharset(unsigned char **p, unsigned char *charset)
|
|||||||
return SETCHARSET_FAIL;
|
return SETCHARSET_FAIL;
|
||||||
break;
|
break;
|
||||||
case CURLFNM_SCHS_MAYRANGE2:
|
case CURLFNM_SCHS_MAYRANGE2:
|
||||||
if(c == '\\') {
|
if(c == ']') {
|
||||||
c = *(++(*p));
|
|
||||||
if(!ISPRINT(c))
|
|
||||||
return SETCHARSET_FAIL;
|
|
||||||
}
|
|
||||||
else if(c == ']') {
|
|
||||||
return SETCHARSET_OK;
|
return SETCHARSET_OK;
|
||||||
}
|
}
|
||||||
else if(c == '\\') {
|
else if(c == '\\') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user