quick hack againist access violation with Disallow premature - the feature is still...
authorLudek Finstrle <luf@pzkagis.cz>
Tue, 31 Jan 2006 09:53:02 +0000 (09:53 +0000)
committerLudek Finstrle <luf@pzkagis.cz>
Tue, 31 Jan 2006 09:53:02 +0000 (09:53 +0000)
execute.c

index d2524e10f595cbf47fc0fda5f68195f06f3c8f93..5eb36d018c342228cb3db7a6cb0c012c552feea7 100644 (file)
--- a/execute.c
+++ b/execute.c
@@ -256,7 +256,7 @@ RETCODE Exec_with_parameters_resolved(StatementClass *stmt, BOOL *exec_end)
            return SQL_ERROR;
        }
        SC_set_Result(stmt, res);
-       for (curres = res; !curres->num_fields; curres = curres->next)
+       for (curres = res; curres && !curres->num_fields; curres = curres->next)
            ;
        SC_set_Curres(stmt, curres);
        if (CC_is_in_autocommit(conn))