Skip to content

Commit d4accd8

Browse files
committed
ext/pdo_mysql: Fix [-Wcalloc-transposed-args] compiler warning
1 parent 3c45152 commit d4accd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo_mysql/mysql_statement.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ static int pdo_mysql_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori
581581
}
582582

583583
if (!S->current_row) {
584-
S->current_row = ecalloc(sizeof(zval), stmt->column_count);
584+
S->current_row = ecalloc(stmt->column_count, sizeof(zval));
585585
}
586586
for (unsigned i = 0; i < stmt->column_count; i++) {
587587
zval_ptr_dtor_nogc(&S->current_row[i]);

0 commit comments

Comments
 (0)