From: Brian Pane Date: Fri, 7 Dec 2001 08:48:17 +0000 (+0000) Subject: Removed one more strdup in the content-type processing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c8da2cf4cd9409eba3c7aa6a07effd77ef46da0;p=apache Removed one more strdup in the content-type processing git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92364 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/mod_mime.c b/modules/http/mod_mime.c index 416b1a127b..0facf1927f 100644 --- a/modules/http/mod_mime.c +++ b/modules/http/mod_mime.c @@ -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);