Skip to content

Commit 1f5b1cf

Browse files
author
Yasuo Ohgaki
committed
Fix Coverity issue reporting wrong sizeof()
1 parent 2cf5614 commit 1f5b1cf

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)