This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Coverity has started to notice another inconsistency in our NULL
[perl5.git] / pp_ctl.c
index c3bc781..5e44789 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2995,7 +2995,7 @@ S_doeval(pTHX_ int gimme, OP** startop, CV* outside, U32 seq)
     DEBUG_x(dump_eval());
 
     /* Register with debugger: */
-    if (PERLDB_INTER && saveop->op_type == OP_REQUIRE) {
+    if (PERLDB_INTER && saveop && saveop->op_type == OP_REQUIRE) {
        CV * const cv = get_cv("DB::postponed", FALSE);
        if (cv) {
            dSP;