diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-06-13 09:08:38 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-13 09:08:38 +0000 |
commit | 4cd96483f6cfe958286bddfb7ad0286a4d2a7e65 (patch) | |
tree | 78ec4fac1ae5b6581de0ec519e7e8d28508cfaaa | |
parent | 8f1783b8a786a43d105b26fcac288fb3c3a45183 (diff) |
moved default: in a switch case to prevent compiler warning that 'request'
might be used uninitialized
-rw-r--r-- | lib/http.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c index f498be23b..1e9693f8a 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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; } } } |