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
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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 == '\\') {