Browse Source

Removed the unnecessary check of array_init() return value.

PEAR_1_4DEV
Andrey Hristov 23 years ago
parent
commit
a0ad4f949e
  1. 8
      sapi/nsapi/nsapi.c

8
sapi/nsapi/nsapi.c

@ -399,9 +399,7 @@ PHP_FUNCTION(nsapi_request_headers)
struct pb_entry *entry;
nsapi_request_context *rc = (nsapi_request_context *)SG(server_context);
if (array_init(return_value) == FAILURE) {
RETURN_FALSE;
}
array_init(return_value);
for (i=0; i < rc->rq->headers->hsize; i++) {
entry=rc->rq->headers->ht[i];
@ -423,9 +421,7 @@ PHP_FUNCTION(nsapi_response_headers)
struct pb_entry *entry;
nsapi_request_context *rc = (nsapi_request_context *)SG(server_context);
if (array_init(return_value) == FAILURE) {
RETURN_FALSE;
}
array_init(return_value);
php_header(TSRMLS_C);

Loading…
Cancel
Save