com php-src: Fixed incomplete initialization.: sapi/phpdbg/phpd bg_list.c

From: Date: Sun, 08 Nov 2015 01:28:04 +0000
Subject: com php-src: Fixed incomplete initialization.: sapi/phpdbg/phpd bg_list.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89702@lists.php.net to get a copy of this message
Commit: b29501f5873878562b27996d4deaf740ca1f3d05 Author: Dmitry Stogov <dmitry@zend.com> Fri, 30 Oct 2015 07:15:56 +0300 Committer: Anatol Belski <ab@php.net> Sun, 8 Nov 2015 02:28:04 +0100 Parents: 17c1fe254ca6f2e308778c4c34d7c796898ab0eb Branches: PHP-7.0.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b29501f5873878562b27996d4deaf740ca1f3d05 Log: Fixed incomplete initialization. Changed paths: M sapi/phpdbg/phpdbg_list.c Diff: diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index dfacc0f...5a4ca21 100644 --- a/sapi/phpdbg/phpdbg_list.c +++ b/sapi/phpdbg/phpdbg_list.c @@ -234,7 +234,7 @@ void phpdbg_list_function_byname(const char *str, size_t len) /* {{{ */ zend_op_array *phpdbg_compile_file(zend_file_handle *file, int type) { phpdbg_file_source data, *dataptr; - zend_file_handle fake = {{0}}; + zend_file_handle fake; zend_op_array *ret; char *filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename); uint line; @@ -253,11 +253,11 @@ zend_op_array *phpdbg_compile_file(zend_file_handle *file, int type) { data.filename = filename; data.line[0] = 0; + memset(&fake, 0, sizeof(fake)); fake.type = ZEND_HANDLE_MAPPED; fake.handle.stream.mmap.buf = data.buf; fake.handle.stream.mmap.len = data.len; fake.free_filename = 0; - fake.opened_path = file->opened_path; fake.filename = filename; fake.opened_path = file->opened_path;

« previous php.cvs (#89702) next »