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

Merge pull request #54 from ppisar/undefined_filename

Initialize filename variable in sqlite_db_filename()
This commit is contained in:
Kenichi Ishigaki 2019-08-12 12:03:30 +03:00 committed by GitHub
commit 523d5a91ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1650,7 +1650,7 @@ SV *
sqlite_db_filename(pTHX_ SV *dbh) sqlite_db_filename(pTHX_ SV *dbh)
{ {
D_imp_dbh(dbh); D_imp_dbh(dbh);
const char *filename; const char *filename = NULL;
if (!imp_dbh->db) { if (!imp_dbh->db) {
return &PL_sv_undef; return &PL_sv_undef;