Skip to content

Commit a42cfc9

Browse files
committed
Remove unnecessary memcpy
1 parent c79d568 commit a42cfc9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Zend/zend_API.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3215,7 +3215,6 @@ ZEND_API zend_result zend_register_functions(zend_class_entry *scope, const zend
32153215
/* Treat return type as an extra argument */
32163216
num_args++;
32173217
new_arg_info = malloc(sizeof(zend_arg_info) * num_args);
3218-
memcpy(new_arg_info, arg_info, sizeof(zend_arg_info) * num_args);
32193218
reg_function->arg_info = new_arg_info + 1;
32203219
for (i = 0; i < num_args; i++) {
32213220
zend_convert_internal_arg_info(&new_arg_info[i], &arg_info[i], i == 0);

0 commit comments

Comments
 (0)