]> granicus.if.org Git - php/commitdiff
Removed the unnecessary check of array_init() return value.
authorAndrey Hristov <andrey@php.net>
Fri, 1 Aug 2003 11:09:11 +0000 (11:09 +0000)
committerAndrey Hristov <andrey@php.net>
Fri, 1 Aug 2003 11:09:11 +0000 (11:09 +0000)
sapi/nsapi/nsapi.c

index 0a9857dde6497165666791099dc124356edecbf1..b3c642b1c7ba9b32b8871b655133f815f78345ca 100644 (file)
@@ -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);