com php-src: Avoid some maybe uninitialized warnings in ffi: ext/ffi/ffi.c

From: Date: Tue, 07 May 2019 13:44:22 +0000
Subject: com php-src: Avoid some maybe uninitialized warnings in ffi: ext/ffi/ffi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106059@lists.php.net to get a copy of this message
Commit: 645ebcdfbfb2adc35aa714485d1685e8b2f8c3e2 Author: Nikita Popov <nikita.ppv@gmail.com> Tue, 7 May 2019 15:21:08 +0200 Parents: 79a84e00fad27bab2a4ca7a58ace1f68cc88be5c Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=645ebcdfbfb2adc35aa714485d1685e8b2f8c3e2 Log: Avoid some maybe uninitialized warnings in ffi All false positives. Changed paths: M ext/ffi/ffi.c Diff: diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c index a060308..72ff4b8 100644 --- a/ext/ffi/ffi.c +++ b/ext/ffi/ffi.c @@ -2980,6 +2980,7 @@ ZEND_METHOD(FFI, load) /* {{{ */ ZEND_FFI_ATTR_STORED; scope_name = NULL; + scope_name_len = 0; lib = NULL; code_pos = zend_ffi_parse_directives(filename, code, &scope_name, &lib, preload); if (!code_pos) { @@ -3382,7 +3383,7 @@ static void zend_ffi_tags_cleanup(zend_ffi_dcl *dcl) /* {{{ */ ZEND_METHOD(FFI, new) /* {{{ */ { zend_string *type_def = NULL; - zval *ztype; + zval *ztype = NULL; zend_ffi_type *type, *type_ptr; zend_ffi_cdata *cdata; void *ptr; @@ -3533,7 +3534,7 @@ ZEND_METHOD(FFI, free) /* {{{ */ ZEND_METHOD(FFI, cast) /* {{{ */ { zend_string *type_def = NULL; - zval *ztype; + zval *ztype = NULL; zend_ffi_type *old_type, *type, *type_ptr; zend_ffi_cdata *old_cdata, *cdata; zend_bool is_const = 0;

« previous php.cvs (#106059) next »