--- rxvt-unicode/src/rxvtperl.xs 2006/01/16 15:00:20 1.69 +++ rxvt-unicode/src/rxvtperl.xs 2006/01/17 09:34:21 1.70 @@ -442,9 +442,12 @@ rxvt_pop_locale (); } - // runs outside of perls ENV - term->perl.self = (void *)newSVptr ((void *)term, "urxvt::term"); - hv_store ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, newRV_noinc ((SV *)newHV ()), 0); + if (perl) + { + // runs outside of perls ENV + term->perl.self = (void *)newSVptr ((void *)term, "urxvt::term"); + hv_store ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, newRV_noinc ((SV *)newHV ()), 0); + } } static void