ext/pdo_mysql: Fix [-Wcalloc-transposed-args] compiler warning

This commit is contained in:
Gina Peter Banyard 2024-05-20 15:43:17 +01:00
parent 3c45152798
commit d4accd8b12
No known key found for this signature in database
GPG key ID: 3306078E3194AEBD

View file

@ -581,7 +581,7 @@ static int pdo_mysql_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori
}
if (!S->current_row) {
S->current_row = ecalloc(sizeof(zval), stmt->column_count);
S->current_row = ecalloc(stmt->column_count, sizeof(zval));
}
for (unsigned i = 0; i < stmt->column_count; i++) {
zval_ptr_dtor_nogc(&S->current_row[i]);