From 159318cf6f0a3f316504e586027e7aad028615a1 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Thu, 2 Apr 2009 07:56:51 +0000 Subject: [PATCH] DBD-SQLite: apply a patch to fix segfault by TOKUHIROM++ --- dbdimp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dbdimp.c b/dbdimp.c index d71e961..68e1a0f 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -426,6 +426,7 @@ sqlite_st_execute (SV *sth, imp_sth_t *imp_sth) return 0; /* There are bug reports that say this should be sqlite3_reset() */ default: sqlite3_finalize(imp_sth->stmt); + imp_sth->stmt = NULL; sqlite_error(sth, (imp_xxh_t*)imp_sth, imp_sth->retval, (char*)sqlite3_errmsg(imp_dbh->db)); return -6; }