diff options
author | Martin Kraemer <martin@apache.org> | 2005-12-19 14:50:56 +0000 |
---|---|---|
committer | Martin Kraemer <martin@apache.org> | 2005-12-19 14:50:56 +0000 |
commit | e4c6f88a8754238a89034893933688904597b290 (patch) | |
tree | 0b923958c4b8e63b2bb235f8d271debcb071eced | |
parent | b773db2f0ea42e6ef8d6b82527ce01c474382366 (diff) | |
download | httpd-e4c6f88a8754238a89034893933688904597b290.tar.gz |
In Apache-2.x, the function is called apr_pstrdup().
The 'tmp' variable is not really necessary.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357699 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/proxy/ajp_header.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/proxy/ajp_header.c b/modules/proxy/ajp_header.c index 4161aef5b7..dcb7da2927 100644 --- a/modules/proxy/ajp_header.c +++ b/modules/proxy/ajp_header.c @@ -461,9 +461,6 @@ static apr_status_t ajp_unmarshal_response(ajp_msg_t *msg, 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 @@ static apr_status_t ajp_unmarshal_response(ajp_msg_t *msg, 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 { |