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

Initialize filename variable in sqlite_db_filename()

If sqlite library is too old, filename variable in
sqlite_db_filename() function was never defined. In spite of that the
variable was used in later condition.

This patch fixes it.
This commit is contained in:
Petr Písař 2019-07-29 16:59:44 +02:00
parent 3212d33b59
commit 0c92dbae92

View file

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