Skip to content

Commit c10796e

Browse files
committed
zend expects this to be clean memory
1 parent 3867962 commit c10796e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpdbg_prompt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ int phpdbg_call_register(phpdbg_input_t *input TSRMLS_DC) /* {{{ */
925925
&PHPDBG_G(registered), function->string, function->length+1)) {
926926

927927
zval fname, *fretval;
928-
zend_fcall_info *fci = emalloc(sizeof(zend_fcall_info));
928+
zend_fcall_info *fci = ecalloc(1, sizeof(zend_fcall_info));
929929

930930
ZVAL_STRINGL(&fname, function->string, function->length, 1);
931931

0 commit comments

Comments
 (0)