]> granicus.if.org Git - apache/commitdiff
Removed one more strdup in the content-type processing
authorBrian Pane <brianp@apache.org>
Fri, 7 Dec 2001 08:48:17 +0000 (08:48 +0000)
committerBrian Pane <brianp@apache.org>
Fri, 7 Dec 2001 08:48:17 +0000 (08:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92364 13f79535-47bb-0310-9956-ffa450edef68

modules/http/mod_mime.c

index 416b1a127bb8931c1d954d66f8fea3da52c5c4ca..0facf1927f8a5dcdac0d3ab71145132d6571e038 100644 (file)
@@ -864,14 +864,9 @@ static int find_ct(request_rec *r)
 
     if (r->content_type) {
        content_type *ctp;
-       char *ct;
        int override = 0;
 
-       ct = (char *) apr_palloc(r->pool,
-                               sizeof(char) * (strlen(r->content_type) + 1));
-       strcpy(ct, r->content_type);
-
-       if ((ctp = analyze_ct(r, ct))) {
+       if ((ctp = analyze_ct(r, r->content_type))) {
            param *pp = ctp->param;
            r->content_type = apr_pstrcat(r->pool, ctp->type, "/",
                                         ctp->subtype, NULL);