You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-DBD-SQLite/DBD-SQLite-1.64-Initialize-...

31 lines
800 B

From 0c92dbae924a230f720891cc04a436fa6ee63490 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Mon, 29 Jul 2019 16:59:44 +0200
Subject: [PATCH] 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.
---
dbdimp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dbdimp.c b/dbdimp.c
index 02f77a1..f5978cd 100644
--- a/dbdimp.c
+++ b/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;
--
2.21.0