This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
remove unnecessary (always true) condition in S_vdie
authorGerard Goossen <gerard@tty.nl>
Wed, 28 Oct 2009 17:46:06 +0000 (18:46 +0100)
committerRafael Garcia-Suarez <rgs@consttype.org>
Thu, 29 Oct 2009 09:51:13 +0000 (10:51 +0100)
util.c

diff --git a/util.c b/util.c
index 50675d3..2576214 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1369,9 +1369,9 @@ S_vdie(pTHX_ const char* pat, va_list *args)
 
     PL_restartop = die_where(message, msglen);
     SvFLAGS(ERRSV) |= utf8;
-    if ((!PL_restartop && was_in_eval) || PL_top_env->je_prev)
-       JMPENV_JUMP(3);
-    return PL_restartop;
+    JMPENV_JUMP(3);
+    /* NOTREACHED */
+    return NULL;
 }
 
 #if defined(PERL_IMPLICIT_CONTEXT)