From: Matteo Beccati Date: Thu, 7 May 2009 23:04:02 +0000 (+0000) Subject: - Fixed bug #48185 removing no-op code X-Git-Tag: php-5.4.0alpha1~191^2~3729 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=009691e028faac43ae35a3d4c655d5e576e190a9;p=php - Fixed bug #48185 removing no-op code --- diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c index ed838d0469..d27de20b4b 100644 --- a/ext/pdo_sqlite/sqlite_statement.c +++ b/ext/pdo_sqlite/sqlite_statement.c @@ -265,11 +265,6 @@ static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsi case SQLITE3_TEXT: *ptr = (char*)sqlite3_column_text(S->stmt, colno); *len = sqlite3_column_bytes(S->stmt, colno); - if (*len) { - /* sqlite3.h says "the NUL terminator is included in the byte count - * for TEXT values" */ - *len--; - } return 1; default: