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:
parent
cbb22cb76d
commit
6e6bf60357
@ -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 == '\\') {
|
||||
|
Loading…
Reference in New Issue
Block a user