From eda916cc9880201944bd13fb0f517ccad248f8e0 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 17 Jun 2019 14:53:44 +0300 Subject: [PATCH] Avoid uninitilized field access --- ext/ffi/ffi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c index 6293964d80..1b016c00a6 100644 --- a/ext/ffi/ffi.c +++ b/ext/ffi/ffi.c @@ -5806,6 +5806,7 @@ void zend_ffi_make_func_type(zend_ffi_dcl *dcl, HashTable *args, zend_ffi_dcl *n zend_hash_destroy(args); pefree(args, FFI_G(persistent)); } + type->func.args = NULL; _zend_ffi_type_dtor(type); zend_ffi_parser_error("unsupported calling convention line %d", FFI_G(line)); break; -- 2.40.0