mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -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:
parent
3212d33b59
commit
0c92dbae92
1 changed files with 1 additions and 1 deletions
2
dbdimp.c
2
dbdimp.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue