Skip to content

Commit eda916c

Browse files
committed
Avoid uninitilized field access
1 parent 1e0b046 commit eda916c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/ffi/ffi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5806,6 +5806,7 @@ void zend_ffi_make_func_type(zend_ffi_dcl *dcl, HashTable *args, zend_ffi_dcl *n
58065806
zend_hash_destroy(args);
58075807
pefree(args, FFI_G(persistent));
58085808
}
5809+
type->func.args = NULL;
58095810
_zend_ffi_type_dtor(type);
58105811
zend_ffi_parser_error("unsupported calling convention line %d", FFI_G(line));
58115812
break;

0 commit comments

Comments
 (0)