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/sybase/php_sybase_db.c | |
parent | e3672e49fc70e3d26b046d062cf3acc6dd06e54a (diff) | |
download | php-git-453368afdffaa2017c22f75f72b736a3b3cb510a.tar.gz |
Removed pointless checks.
Diffstat (limited to 'ext/sybase/php_sybase_db.c')
-rw-r--r-- | ext/sybase/php_sybase_db.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/sybase/php_sybase_db.c b/ext/sybase/php_sybase_db.c index e8e1026185..d96dad533d 100644 --- a/ext/sybase/php_sybase_db.c +++ b/ext/sybase/php_sybase_db.c @@ -1219,9 +1219,8 @@ PHP_FUNCTION(sybase_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); |