mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:41:41 +03: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
1 changed files with 1 additions and 6 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue