X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pq_object.c;fp=src%2Fphp_pq_object.c;h=e6640def71a3dc97422bc7d5403995c75eb94644;hp=704737ff95b1fcc2fcb95fccbed9ea7834ed5155;hb=88440266c0a9fa8354688b5ed0d2a6cc3bf04db5;hpb=ee121d2b99c19413619973fe8a8db18bfcb534d8 diff --git a/src/php_pq_object.c b/src/php_pq_object.c index 704737f..e6640de 100644 --- a/src/php_pq_object.c +++ b/src/php_pq_object.c @@ -111,7 +111,7 @@ zval *php_pq_object_read_prop(zval *object, zval *member, int type, const zend_l { php_pq_object_t *obj = zend_object_store_get_object(object TSRMLS_CC); php_pq_object_prophandler_t *handler; - zval *return_value; + zval *return_value = NULL; if (!obj->intern) { zend_error(E_WARNING, "%s not initialized", ancestor(obj->zo.ce)->name); @@ -124,7 +124,6 @@ zval *php_pq_object_read_prop(zval *object, zval *member, int type, const zend_l handler->read(object, obj, return_value TSRMLS_CC); } else { zend_error(E_ERROR, "Cannot access %s properties by reference or array key/index", ancestor(obj->zo.ce)->name); - return_value = NULL; } } else { return_value = zend_get_std_object_handlers()->read_property(object, member, type, key TSRMLS_CC);