File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ bool php_phongo_bson_visit_oid(const bson_iter_t *iter __attribute__((unused)),
238
238
{
239
239
zval * retval = * (zval * * )data ;
240
240
TSRMLS_FETCH ();
241
- zval * zchild ;
241
+ zval * zchild = NULL ;
242
242
243
243
MAKE_STD_ZVAL (zchild );
244
244
php_phongo_objectid_new_from_oid (zchild , v_oid TSRMLS_CC );
@@ -511,10 +511,11 @@ bool php_phongo_bson_visit_document(const bson_iter_t *iter __attribute__((unuse
511
511
TSRMLS_FETCH ();
512
512
513
513
if (bson_iter_init (& child , v_document )) {
514
- zval * zchild ;
514
+ zval * zchild = NULL ;
515
515
516
516
MAKE_STD_ZVAL (zchild );
517
517
object_init (zchild );
518
+
518
519
if (!bson_iter_visit_all (& child , & php_bson_visitors , & zchild )) {
519
520
if (Z_TYPE_P (retval ) == IS_ARRAY ) {
520
521
add_assoc_zval (retval , key , zchild );
@@ -537,7 +538,7 @@ bool php_phongo_bson_visit_array(const bson_iter_t *iter __attribute__((unused))
537
538
TSRMLS_FETCH ();
538
539
539
540
if (bson_iter_init (& child , v_array )) {
540
- zval * zchild ;
541
+ zval * zchild = NULL ;
541
542
542
543
MAKE_STD_ZVAL (zchild );
543
544
object_init (zchild );
You can’t perform that action at this time.
0 commit comments