Skip to content

Commit a4edb5a

Browse files
committed
ext/soap: Initialize a HashTable of size j
The i seems to be a mistake as everything else uses j
1 parent 07a83c7 commit a4edb5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/soap/php_sdl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ static void sdl_deserialize_soap_body(sdlSoapBindingFunctionBodyPtr body, encode
14711471
WSDL_CACHE_GET_INT(j, in);
14721472
if (j > 0) {
14731473
tmp->headerfaults = emalloc(sizeof(HashTable));
1474-
zend_hash_init(tmp->headerfaults, i, NULL, delete_header, 0);
1474+
zend_hash_init(tmp->headerfaults, j, NULL, delete_header, 0);
14751475
while (j > 0) {
14761476
sdlSoapBindingFunctionHeaderPtr tmp2 = emalloc(sizeof(sdlSoapBindingFunctionHeader));
14771477
memset(tmp2, 0, sizeof(sdlSoapBindingFunctionHeader));

0 commit comments

Comments
 (0)