summaryrefslogtreecommitdiff
path: root/ext/msql/php_msql.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-01-30 02:33:16 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-01-30 02:33:16 +0000
commit453368afdffaa2017c22f75f72b736a3b3cb510a (patch)
tree9110d98320549877fbcf1d61bd1e66b550124f91 /ext/msql/php_msql.c
parente3672e49fc70e3d26b046d062cf3acc6dd06e54a (diff)
downloadphp-git-453368afdffaa2017c22f75f72b736a3b3cb510a.tar.gz
Removed pointless checks.
Diffstat (limited to 'ext/msql/php_msql.c')
-rw-r--r--ext/msql/php_msql.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/msql/php_msql.c b/ext/msql/php_msql.c
index ddd97293cc..f4736f5df1 100644
--- a/ext/msql/php_msql.c
+++ b/ext/msql/php_msql.c
@@ -1095,9 +1095,7 @@ PHP_FUNCTION(msql_fetch_field)
if (!msql_result || (msql_field=msqlFetchField(msql_result))==NULL) {
RETURN_FALSE;
}
- if (object_init(return_value)==FAILURE) {
- RETURN_FALSE;
- }
+ object_init(return_value);
add_property_string(return_value, "name",(msql_field->name?msql_field->name:empty_string), 1);
add_property_string(return_value, "table",(msql_field->table?msql_field->table:empty_string), 1);