summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4150372)
raw | patch | inline | side by side (parent: 4150372)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 16 Feb 2009 12:39:54 +0000 (13:39 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 16 Feb 2009 14:22:05 +0000 (15:22 +0100) |
newRV() does not handle that correctly and causes a segfault instead. Now, we
use PL_sv_undef instead.
use PL_sv_undef instead.
src/perl.c | patch | blob | history |
diff --git a/src/perl.c b/src/perl.c
index f9c993872a4ba5a12f43aa13167b740911efb662..9f91d0181013a7e8493a7526f3405b989b793617 100644 (file)
--- a/src/perl.c
+++ b/src/perl.c
if (-1 == data_set2av (aTHX_ ds, pds)) {
av_clear (pds);
av_undef (pds);
- pds = Nullav;
+ pds = (AV *)&PL_sv_undef;
ret = -1;
}
if (-1 == value_list2hv (aTHX_ vl, ds, pvl)) {
hv_clear (pvl);
hv_undef (pvl);
- pvl = Nullhv;
+ pvl = (HV *)&PL_sv_undef;
ret = -1;
}
if (-1 == notification2hv (aTHX_ n, notif)) {
hv_clear (notif);
hv_undef (notif);
- notif = Nullhv;
+ notif = (HV *)&PL_sv_undef;
ret = -1;
}
hv_undef (config);
log_err ("Unable to convert configuration to a Perl hash value.");
- config = Nullhv;
+ config = (HV *)&PL_sv_undef;
}
ENTER;