Fix segfault when fetchrow() is called again after it has returned an empty list once. (#317453) - added perl-DBD-SQLite2-no-return-in-nonvoid-function.patch: Fix function returning random data OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-SQLite2?expand=0&rev=3
13 lines
347 B
Diff
13 lines
347 B
Diff
Index: DBD-SQLite2-0.33/dbdimp.c
|
|
===================================================================
|
|
--- DBD-SQLite2-0.33.orig/dbdimp.c
|
|
+++ DBD-SQLite2-0.33/dbdimp.c
|
|
@@ -459,6 +459,7 @@ sqlite2_bind_ph (SV *sth, imp_sth_t *imp
|
|
else {
|
|
av_store(imp_sth->params, SvIV(param) - 1, SvREFCNT_inc(value));
|
|
}
|
|
+ return -1;
|
|
}
|
|
|
|
AV *
|