Skip to content
Snippets Groups Projects
Commit 4cd96483 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

moved default: in a switch case to prevent compiler warning that 'request'

might be used uninitialized
parent 8f1783b8
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment