parent
aa5118af39
commit
74645a561d
@ -1,30 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
@ -1 +1 @@
|
|||||||
SHA512 (DBD-SQLite-1.64.tar.gz) = 36a227193b4544c7cec24eec50ee51f46c00a2dad99ab7b8899b0417ea928a1e223f4052fb75f2d641cbfa4408192492ba8943fdb92520dc9888014467f503a4
|
SHA512 (DBD-SQLite-1.66.tar.gz) = 4d58003e69f29b18d01ed0b5853cdac40ec9ce5d4c75bc8a3743937897a38290a99be30b1b9fae593b0d8d51d05b7e2438d29f7a7c1c755b66de51826397aef9
|
||||||
|
Loading…
Reference in new issue