diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:41:56 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:41:56 +0000 |
commit | e2868b57885dac8a36593e2154c808038adc4cef (patch) | |
tree | edb1421b5b3d4340a0e2538b996393874575b5f6 /ext/mysql/php_mysql.c | |
parent | 72b356c1bccb511e9a3414cbfe6ff25b5a20b91f (diff) | |
download | php-git-e2868b57885dac8a36593e2154c808038adc4cef.tar.gz |
Removed pointless memory allocation checks.
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r-- | ext/mysql/php_mysql.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index d5d3544061..eeefc0aeda 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -1888,9 +1888,7 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type, RETURN_FALSE; } - if (array_init(return_value)==FAILURE) { - RETURN_FALSE; - } + array_init(return_value); mysql_field_seek(mysql_result, 0); for (mysql_field=mysql_fetch_field(mysql_result), i=0; mysql_field; mysql_field=mysql_fetch_field(mysql_result), i++) { @@ -2012,9 +2010,7 @@ PHP_FUNCTION(mysql_fetch_lengths) if ((lengths=mysql_fetch_lengths(mysql_result))==NULL) { RETURN_FALSE; } - if (array_init(return_value)==FAILURE) { - RETURN_FALSE; - } + array_init(return_value); num_fields = mysql_num_fields(mysql_result); for (i=0; i<num_fields; i++) { |