From b15f2feda8393902ded0e5b7f077431a9a0a5b35 Mon Sep 17 00:00:00 2001 From: Lars Westermann Date: Tue, 20 Nov 2007 21:36:20 +0000 Subject: [PATCH] Win32 still fails to build ... --- ext/interbase/ibase_query.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/interbase/ibase_query.c b/ext/interbase/ibase_query.c index 9c82ff4c0a..64a88d09af 100644 --- a/ext/interbase/ibase_query.c +++ b/ext/interbase/ibase_query.c @@ -120,12 +120,12 @@ static void _php_ibase_free_xsqlda(XSQLDA *sqlda) /* {{{ */ static void _php_ibase_free_stmt_handle(ibase_db_link *link, isc_stmt_handle stmt TSRMLS_DC) /* {{{ */ { + static char info[] = { isc_info_base_level, isc_info_end }; + if (stmt) { + char res_buf[8]; IBDEBUG("Dropping statement handle (free_stmt_handle)..."); /* Only free statement if db-connection is still open */ - static char info[] = { isc_info_base_level, isc_info_end }; - char res_buf[8]; - if (SUCCESS == isc_database_info(IB_STATUS, &link->handle, sizeof(info), info, sizeof(res_buf), res_buf)) { if (isc_dsql_free_statement(IB_STATUS, &stmt, DSQL_drop)) { -- 2.50.1