diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-11-06 09:01:53 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-11-06 09:01:53 +0100 |
commit | 6e6bf60357f4587a7e61d34eba40b24ef9c62ac8 (patch) | |
tree | 1105c734de6f92240306f379d9a66bfcb746c794 /lib/curl_fnmatch.c | |
parent | cbb22cb76d8e516059a112cbecf0ae31d77b2d0c (diff) | |
download | curl-6e6bf60357f4587a7e61d34eba40b24ef9c62ac8.tar.gz |
fnmatch: remove dead code
There was a duplicate check for backslashes in the setcharset()
function.
Coverity CID 1420611
Diffstat (limited to 'lib/curl_fnmatch.c')
-rw-r--r-- | lib/curl_fnmatch.c | 7 |
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 == '\\') { |