From 6af1d53c28147abf82988004403043b9caef5af1 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Thu, 30 Apr 2009 14:24:12 +0000 Subject: [PATCH] DBD-SQLite: small tweak (#45578) --- dbdimp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbdimp.c b/dbdimp.c index 1a73f48..783a2d7 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -262,7 +262,7 @@ sqlite_st_prepare (SV *sth, imp_sth_t *imp_sth, return FALSE; /* -> undef in lib/DBD/SQLite.pm */ } - if (strlen(statement) < 1) { + if (*statement == '\0') { sqlite_error(sth, (imp_xxh_t*)imp_sth, -2, "attempt to prepare empty statement"); return FALSE; /* -> undef in lib/DBD/SQLite.pm */ }