Skip to content

Commit 6af3683

Browse files
author
Yasuo Ohgaki
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: Fix Coverity issue reporting wrong sizeof()
2 parents 6410f6f + 1f5b1cf commit 6af3683

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)