Fixed debug assertion.

This commit is contained in:
Markus Makela 2015-11-17 09:17:29 +02:00
parent 074f37e997
commit b828b04c05

View File

@ -1841,9 +1841,8 @@ RESULT_ROW *result_set_cb(struct resultset * rset, void *data)
{
RESULT_ROW *row = NULL;
struct string_array *strarray = (struct string_array*) data;
ss_dassert(strarray->position < strarray->size);
if ((row = resultset_make_row(rset)))
if (strarray->position < strarray->size && (row = resultset_make_row(rset)))
{
if (resultset_row_set(row, 0, strarray->array[strarray->position++]) == 0)
{