diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-30 02:33:16 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-30 02:33:16 +0000 |
commit | 453368afdffaa2017c22f75f72b736a3b3cb510a (patch) | |
tree | 9110d98320549877fbcf1d61bd1e66b550124f91 /ext/mysql | |
parent | e3672e49fc70e3d26b046d062cf3acc6dd06e54a (diff) | |
download | php-git-453368afdffaa2017c22f75f72b736a3b3cb510a.tar.gz |
Removed pointless checks.
Diffstat (limited to 'ext/mysql')
-rw-r--r-- | ext/mysql/php_mysql.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index eeefc0aeda..ef46b204a0 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -2111,9 +2111,7 @@ PHP_FUNCTION(mysql_fetch_field) if ((mysql_field=mysql_fetch_field(mysql_result))==NULL) { RETURN_FALSE; } - if (object_init(return_value)==FAILURE) { - RETURN_FALSE; - } + object_init(return_value); add_property_string(return_value, "name",(mysql_field->name?mysql_field->name:empty_string), 1); add_property_string(return_value, "table",(mysql_field->table?mysql_field->table:empty_string), 1); |