Skip to content

Commit 5e7c876

Browse files
committed
ext/soap: Replace memset with 0 initialization
1 parent e2dee95 commit 5e7c876

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/soap/php_sdl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,8 @@ static HashTable* wsdl_message(sdlCtx *ctx, xmlChar* message_name)
694694

695695
static sdlPtr load_wsdl(zval *this_ptr, char *struri)
696696
{
697-
sdlCtx ctx;
697+
sdlCtx ctx = {0};
698698

699-
memset(&ctx,0,sizeof(ctx));
700699
ctx.sdl = emalloc(sizeof(sdl));
701700
memset(ctx.sdl, 0, sizeof(sdl));
702701
ctx.sdl->source = estrdup(struri);

0 commit comments

Comments
 (0)