summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_list.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-10-30 07:15:56 +0300
committerDmitry Stogov <dmitry@zend.com>2015-10-30 07:15:56 +0300
commit3c5a3e77d4d56b08747205faba22dfcc6b2b569b (patch)
tree5377b0cba20912f130c1e1ef085121b29a70ad1a /sapi/phpdbg/phpdbg_list.c
parent41de89f61b616926e7d2b4bcb274768dce014443 (diff)
downloadphp-git-3c5a3e77d4d56b08747205faba22dfcc6b2b569b.tar.gz
Fixed incomplete initialization.
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r--sapi/phpdbg/phpdbg_list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c
index dfacc0f533..5a4ca21583 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;