Skip to content
Snippets Groups Projects
Unverified Commit 6e6bf603 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

fnmatch: remove dead code

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

Coverity CID 1420611
parent cbb22cb7
No related branches found
No related tags found
No related merge requests found
......@@ -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 == '\\') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment