Skip to content

Commit e6058a9

Browse files
committed
Remove redundant null assignment in create_object handler
Objects are already allocated with ecalloc(), which clears memory.
1 parent 70b995f commit e6058a9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/BSON/Javascript.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,6 @@ phongo_create_object_retval php_phongo_javascript_create_object(zend_class_entry
210210
zend_object_std_init(&intern->std, class_type TSRMLS_CC);
211211
object_properties_init(&intern->std, class_type);
212212

213-
intern->document = NULL;
214-
215213
#if PHP_VERSION_ID >= 70000
216214
intern->std.handlers = &php_phongo_handler_javascript;
217215

0 commit comments

Comments
 (0)