Skip to content

Commit 29e5a96

Browse files
author
Yasuo Ohgaki
committed
Merge branch 'PHP-5.5'
* PHP-5.5: Fix Coverity issue reporting wrong sizeof()
2 parents fa11c7c + 6af3683 commit 29e5a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pgsql/pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ static void php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, long result_type,
26392639
Bucket *p;
26402640

26412641
fci.param_count = 0;
2642-
fci.params = safe_emalloc(sizeof(zval*), ht->nNumOfElements, 0);
2642+
fci.params = safe_emalloc(sizeof(zval***), ht->nNumOfElements, 0);
26432643
p = ht->pListHead;
26442644
while (p != NULL) {
26452645
fci.params[fci.param_count++] = (zval**)p->pData;

0 commit comments

Comments
 (0)