mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ext/pdo_mysql: Fix [-Wcalloc-transposed-args] compiler warning
This commit is contained in:
parent
3c45152798
commit
d4accd8b12
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue