httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r357699 - /httpd/httpd/trunk/modules/proxy/ajp_header.c
Date Mon, 19 Dec 2005 14:50:58 GMT
Author: martin
Date: Mon Dec 19 06:50:56 2005
New Revision: 357699

URL: http://svn.apache.org/viewcvs?rev=357699&view=rev
Log:
In Apache-2.x, the function is called apr_pstrdup().
The 'tmp' variable is not really necessary.

Modified:
    httpd/httpd/trunk/modules/proxy/ajp_header.c

Modified: httpd/httpd/trunk/modules/proxy/ajp_header.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/proxy/ajp_header.c?rev=357699&r1=357698&r2=357699&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/ajp_header.c (original)
+++ httpd/httpd/trunk/modules/proxy/ajp_header.c Mon Dec 19 06:50:56 2005
@@ -461,9 +461,6 @@
     const char *ptr;
     apr_uint16_t  num_headers;
     int i;
-#if defined(AS400) || defined(_OSD_POSIX)
-    char *tmp;
-#endif
 
     rc = ajp_msg_get_uint16(msg, &status);
 
@@ -476,10 +473,9 @@
 
     rc = ajp_msg_get_string(msg, &ptr);
     if (rc == APR_SUCCESS) {
-#if defined(AS400) || defined(_OSD_POSIX)
-        tmp = ap_pstrdup(r->pool, ptr);
-        ap_xlate_proto_from_ascii(tmp, strlen(tmp));
-        ptr = tmp;
+#if defined(AS400) || defined(_OSD_POSIX) /* EBCDIC platforms */
+        ptr = apr_pstrdup(r->pool, ptr);
+        ap_xlate_proto_from_ascii(ptr, strlen(ptr));
 #endif
         r->status_line =  apr_psprintf(r->pool, "%d %s", status, ptr);
     } else {



Mime
View raw message