Commit e550df67 authored by Yang Tse's avatar Yang Tse
Browse files

Fix compiler warning: subscript has type `char'

parent f614fe49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2098,7 +2098,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
    if (checkprefix("ftp://", ppath) || checkprefix("ftps://", ppath)) {
      char *p = strstr(ppath, ";type=");
      if (p && p[6] && p[7] == 0) {
        switch (toupper(p[6])) {
        switch (toupper((int)((unsigned char)p[6]))) {
        case 'A':
        case 'D':
        case 'I':