1
0
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:
Daniel Stenberg 2004-06-13 09:08:38 +00:00
parent 8f1783b8a7
commit 4cd96483f6

View File

@ -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;
}
}
}