httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/modules/http mod_mime.c
Date Fri, 07 Dec 2001 08:48:17 GMT
brianp      01/12/07 00:48:17

  Modified:    modules/http mod_mime.c
  Log:
  Removed one more strdup in the content-type processing
  
  Revision  Changes    Path
  1.73      +1 -6      httpd-2.0/modules/http/mod_mime.c
  
  Index: mod_mime.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/mod_mime.c,v
  retrieving revision 1.72
  retrieving revision 1.73
  diff -u -r1.72 -r1.73
  --- mod_mime.c	2001/12/07 08:19:44	1.72
  +++ mod_mime.c	2001/12/07 08:48:17	1.73
  @@ -864,14 +864,9 @@
   
       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);
  
  
  

Mime
View raw message