Skip to content

Commit 66194a2

Browse files
committed
assert in_fields_count
1 parent 825fb00 commit 66194a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ibase_query.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,8 @@ static int _php_ibase_bind(ibase_query *ib_query, zval *b_vars) /* {{{ */
571571
// XSQLDA *sqlda = ib_query->in_sqlda;
572572
int i, array_cnt = 0, rv = SUCCESS;
573573

574+
assert(ib_query->in_fields_count > 0);
575+
574576
for (i = 0; i < ib_query->in_sqlda->sqld; ++i) { /* bound vars */
575577
zval *b_var = &b_vars[i];
576578
XSQLVAR *var = &ib_query->in_sqlda->sqlvar[i];

0 commit comments

Comments
 (0)