summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2003-08-01 11:09:11 +0000
committerAndrey Hristov <andrey@php.net>2003-08-01 11:09:11 +0000
commita0ad4f949e137af1ef6c7c753ec8c2a321f49998 (patch)
treec196dc190b5adc777b716d10c9d64111e20d0e9b /sapi
parente6adc8fa15901c4297702075dadae937cb03d703 (diff)
downloadphp-git-a0ad4f949e137af1ef6c7c753ec8c2a321f49998.tar.gz
Removed the unnecessary check of array_init() return value.
Diffstat (limited to 'sapi')
-rw-r--r--sapi/nsapi/nsapi.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c
index 0a9857dde6..b3c642b1c7 100644
--- a/sapi/nsapi/nsapi.c
+++ b/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);