coverage++
[awesomized/ext-ion] / ion.c
diff --git a/ion.c b/ion.c
index 40c7ea1944557b25d294d51a0ea0630730300213..28d5a5cdc3356a15198b7248e02361e5c83bec64 100644 (file)
--- a/ion.c
+++ b/ion.c
@@ -1624,8 +1624,7 @@ static ZEND_METHOD(ion_Writer_Buffer_Writer, getBuffer)
 
        ZEND_PARSE_PARAMETERS_NONE();
 
-       smart_str_0(&obj->buffer.str.s);
-       RETVAL_STR_COPY(obj->buffer.str.s);
+       RETVAL_STR(php_ion_writer_buffer_copy(obj));
 }
 static ZEND_METHOD(ion_Writer_Buffer_Writer, resetBuffer)
 {