diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-04-19 20:55:02 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-04-19 20:55:02 +0000 |
| commit | acbeba2a50898cf426e9888499e7769bc5d15926 (patch) | |
| tree | 7e326347acf3e3917d87049e6a64b5e95bb0d3cb /ext/pdo_odbc | |
| parent | 569138e0c0edec637e87d69988482bbb9816c01c (diff) | |
| download | php-git-acbeba2a50898cf426e9888499e7769bc5d15926.tar.gz | |
Removed unused var.
Diffstat (limited to 'ext/pdo_odbc')
| -rwxr-xr-x | ext/pdo_odbc/odbc_stmt.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) { |
