From: Ilia Alshanetsky Date: Tue, 19 Apr 2005 20:55:02 +0000 (+0000) Subject: Removed unused var. X-Git-Tag: php-5.0.1b1~473 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acbeba2a50898cf426e9888499e7769bc5d15926;p=php Removed unused var. --- diff --git a/ext/pdo_odbc/odbc_stmt.c b/ext/pdo_odbc/odbc_stmt.c index 1614b0541b..daf8967d9e 100755 --- a/ext/pdo_odbc/odbc_stmt.c +++ b/ext/pdo_odbc/odbc_stmt.c @@ -32,9 +32,9 @@ static void free_cols(pdo_stmt_t *stmt, pdo_odbc_stmt *S TSRMLS_DC) { - int i; - if (S->cols) { + int i; + for (i = 0; i < stmt->column_count; i++) { if (S->cols[i].data) { efree(S->cols[i].data); @@ -48,7 +48,6 @@ static void free_cols(pdo_stmt_t *stmt, pdo_odbc_stmt *S TSRMLS_DC) static int odbc_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) { pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; - int i; if (S->stmt != SQL_NULL_HANDLE) { if (stmt->executed) {