summaryrefslogtreecommitdiff
path: root/ext/mssql
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/mssql
parente3672e49fc70e3d26b046d062cf3acc6dd06e54a (diff)
downloadphp-git-453368afdffaa2017c22f75f72b736a3b3cb510a.tar.gz
Removed pointless checks.
Diffstat (limited to 'ext/mssql')
-rw-r--r--ext/mssql/php_mssql.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index b44deff3c6..c60065c73e 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -1490,9 +1490,8 @@ PHP_FUNCTION(mssql_fetch_field)
RETURN_FALSE;
}
- if (object_init(return_value)==FAILURE) {
- RETURN_FALSE;
- }
+ object_init(return_value);
+
add_property_string(return_value, "name",result->fields[field_offset].name, 1);
add_property_long(return_value, "max_length",result->fields[field_offset].max_length);
add_property_string(return_value, "column_source",result->fields[field_offset].column_source, 1);