1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

try not to reuse hv

This commit is contained in:
Kenichi Ishigaki 2019-01-26 07:41:16 +09:00
parent 13da736ed6
commit ce5b33b381

View file

@ -459,7 +459,8 @@ sqlite_db_login6(SV *dbh, imp_dbh_t *imp_dbh, char *dbname, char *user, char *pa
sqlite3_busy_timeout(imp_dbh->db, SQL_TIMEOUT);
if (SvROK(attr) && hv) {
if (SvROK(attr)) {
hv = (HV*)SvRV(attr);
if (hv_exists(hv, "sqlite_defensive", 16)) {
val = hv_fetch(hv, "sqlite_defensive", 16, 0);
if (val && SvIOK(*val)) {