mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
DBD-SQLite: perl 5.10 prefers XPUSHs(sv_2mortal(&PL_sv_undef))
This commit is contained in:
parent
4f5603f3db
commit
fd6c9caa0c
1 changed files with 4 additions and 4 deletions
8
dbdimp.c
8
dbdimp.c
|
@ -1524,25 +1524,25 @@ sqlite_db_authorizer_dispatcher (
|
||||||
|
|
||||||
/* these ifs are ugly but without them, perl 5.8 segfaults */
|
/* these ifs are ugly but without them, perl 5.8 segfaults */
|
||||||
if (details_1 == NULL) {
|
if (details_1 == NULL) {
|
||||||
XPUSHs( NULL );
|
XPUSHs( sv_2mortal( &PL_sv_undef ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
XPUSHs( sv_2mortal ( newSVpv ( details_1, 0 ) ) );
|
XPUSHs( sv_2mortal ( newSVpv ( details_1, 0 ) ) );
|
||||||
}
|
}
|
||||||
if (details_2 == NULL) {
|
if (details_2 == NULL) {
|
||||||
XPUSHs( NULL );
|
XPUSHs( sv_2mortal( &PL_sv_undef ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
XPUSHs( sv_2mortal ( newSVpv ( details_2, 0 ) ) );
|
XPUSHs( sv_2mortal ( newSVpv ( details_2, 0 ) ) );
|
||||||
}
|
}
|
||||||
if (details_3 == NULL) {
|
if (details_3 == NULL) {
|
||||||
XPUSHs( NULL );
|
XPUSHs( sv_2mortal( &PL_sv_undef ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
XPUSHs( sv_2mortal ( newSVpv ( details_3, 0 ) ) );
|
XPUSHs( sv_2mortal ( newSVpv ( details_3, 0 ) ) );
|
||||||
}
|
}
|
||||||
if (details_4 == NULL) {
|
if (details_4 == NULL) {
|
||||||
XPUSHs( NULL );
|
XPUSHs( sv_2mortal( &PL_sv_undef ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
XPUSHs( sv_2mortal ( newSVpv ( details_4, 0 ) ) );
|
XPUSHs( sv_2mortal ( newSVpv ( details_4, 0 ) ) );
|
||||||
|
|
Loading…
Add table
Reference in a new issue