aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-11-06 09:01:53 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-11-06 09:01:53 +0100
commit6e6bf60357f4587a7e61d34eba40b24ef9c62ac8 (patch)
tree1105c734de6f92240306f379d9a66bfcb746c794
parentcbb22cb76d8e516059a112cbecf0ae31d77b2d0c (diff)
fnmatch: remove dead code
There was a duplicate check for backslashes in the setcharset() function. Coverity CID 1420611
-rw-r--r--lib/curl_fnmatch.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/curl_fnmatch.c b/lib/curl_fnmatch.c
index 5a6f137c8..da83393b4 100644
--- a/lib/curl_fnmatch.c
+++ b/lib/curl_fnmatch.c
@@ -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 == '\\') {