From 30409d6753efc4da50d4a7b1180ff1c442735781 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 5 May 2019 17:45:16 +0200 Subject: [PATCH] Properly initialize variable Not all code paths assign to `handle`, even though it may be used, so we make sure that it is initialized to a sane value in the first place. --- ext/ffi/ffi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c index c3807139176..0e0803adca6 100644 --- a/ext/ffi/ffi.c +++ b/ext/ffi/ffi.c @@ -2926,7 +2926,7 @@ ZEND_METHOD(FFI, load) /* {{{ */ size_t code_size, scope_name_len; zend_ffi *ffi; zend_bool preload = (CG(compiler_options) & ZEND_COMPILE_PRELOAD) != 0; - DL_HANDLE handle; + DL_HANDLE handle = NULL; zend_ffi_scope *scope = NULL; zend_string *name; zend_ffi_symbol *sym;