mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
moved default: in a switch case to prevent compiler warning that 'request'
might be used uninitialized
This commit is contained in:
parent
8f1783b8a7
commit
4cd96483f6
@ -1279,14 +1279,13 @@ CURLcode Curl_http(struct connectdata *conn)
|
||||
case HTTPREQ_PUT:
|
||||
request = (char *)"PUT";
|
||||
break;
|
||||
default: /* this should never happen */
|
||||
case HTTPREQ_GET:
|
||||
request = (char *)"GET";
|
||||
break;
|
||||
case HTTPREQ_HEAD:
|
||||
request = (char *)"HEAD";
|
||||
break;
|
||||
default: /* this should never happen */
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user