Skip to content

Commit 14791ce

Browse files
committed
remove redundant memset before struct copy.
1 parent 667f35d commit 14791ce

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

ext/soap/php_sdl.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,6 @@ static HashTable* make_persistent_sdl_function_headers(HashTable *headers, HashT
24332433

24342434
ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(headers, key, tmp) {
24352435
pheader = malloc(sizeof(sdlSoapBindingFunctionHeader));
2436-
memset(pheader, 0, sizeof(sdlSoapBindingFunctionHeader));
24372436
*pheader = *tmp;
24382437

24392438
if (pheader->name) {
@@ -2497,7 +2496,6 @@ static HashTable* make_persistent_sdl_parameters(HashTable *params, HashTable *p
24972496

24982497
ZEND_HASH_FOREACH_STR_KEY_PTR(params, key, tmp) {
24992498
pparam = malloc(sizeof(sdlParam));
2500-
memset(pparam, 0, sizeof(sdlParam));
25012499
*pparam = *tmp;
25022500

25032501
if (pparam->paramName) {
@@ -2539,7 +2537,6 @@ static HashTable* make_persistent_sdl_function_faults(sdlFunctionPtr func, HashT
25392537

25402538
ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(faults, key, tmp) {
25412539
pfault = malloc(sizeof(sdlFault));
2542-
memset(pfault, 0, sizeof(sdlFault));
25432540
*pfault = *tmp;
25442541

25452542
if (pfault->name) {

0 commit comments

Comments
 (0)