Skip to content

Commit f1c4206

Browse files
committed
fix
1 parent 8265a83 commit f1c4206

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

classes/Types.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ void ZEND_FASTCALL zif_readType(INTERNAL_FUNCTION_PARAMETERS) {
120120

121121
template<typename TValue, readTypeFunc_t<TValue> readTypeFunc, typename TZendValue>
122122
void ZEND_FASTCALL zif_unpackType(INTERNAL_FUNCTION_PARAMETERS) {
123-
zval* object_zv;
124-
byte_buffer_reader_t reader;
123+
byte_buffer_reader_t reader = { 0 };
125124

126125
ZEND_PARSE_PARAMETERS_START_EX(ZEND_PARSE_PARAMS_THROW, 1, 1)
127126
Z_PARAM_STR(reader.buffer)
@@ -170,7 +169,6 @@ void ZEND_FASTCALL zif_readTypeArray(INTERNAL_FUNCTION_PARAMETERS) {
170169

171170
template<typename TValue, readTypeArrayFunc_t<TValue> readTypeArray, typename TZendValue>
172171
void ZEND_FASTCALL zif_unpackTypeArray(INTERNAL_FUNCTION_PARAMETERS) {
173-
zval* object_zv;
174172
zend_long zcount;
175173
byte_buffer_reader_t reader = { 0 };
176174

0 commit comments

Comments
 (0)