diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:49:28 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:49:28 +0000 |
commit | a7b91019e9b551ff48dd91587674784b7020673f (patch) | |
tree | cfa8e9cb23f2e0a71364f747f2e3debcb508a5f5 /ext/fbsql | |
parent | a395304c7245ec411e8c735c82734e1fd0c27725 (diff) | |
download | php-git-a7b91019e9b551ff48dd91587674784b7020673f.tar.gz |
Removed pointless memory allocation checks.
Diffstat (limited to 'ext/fbsql')
-rw-r--r-- | ext/fbsql/php_fbsql.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c index 75a6e14b98..11786c7b30 100644 --- a/ext/fbsql/php_fbsql.c +++ b/ext/fbsql/php_fbsql.c @@ -2815,10 +2815,7 @@ static void php_fbsql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type) php_error_docref(NULL TSRMLS_CC, E_WARNING, "Illegal result type use FBSQL_NUM, FBSQL_ASSOC, or FBSQL_BOTH"); RETURN_FALSE; } - if (array_init(return_value)==FAILURE) - { - RETURN_FALSE; - } + array_init(return_value); if (result->fetchHandle == NULL) { if (result->array == NULL && result->list == NULL) @@ -3015,7 +3012,7 @@ PHP_FUNCTION(fbsql_fetch_lengths) ZEND_FETCH_RESOURCE(result, PHPFBResult *, fbsql_result_index, -1, "FrontBase-Result", le_result); if (result->row == NULL) RETURN_FALSE; - if (array_init(return_value)==FAILURE) RETURN_FALSE; + array_init(return_value); for (i=0; i < result->columnCount; i++) { unsigned length = 0; |