]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
moved default: in a switch case to prevent compiler warning that 'request'
authorDaniel Stenberg <daniel@haxx.se>
Sun, 13 Jun 2004 09:08:38 +0000 (09:08 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 13 Jun 2004 09:08:38 +0000 (09:08 +0000)
might be used uninitialized

lib/http.c

index f498be23b962adf8fb6f0cdf6d8c7ade7603d01a..1e9693f8afc3d738b51978360e6443290c7a80a3 100644 (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;
       }
     }
   }