summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mg.c3
-rw-r--r--pp.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/mg.c b/mg.c
index 6446b2cc52..339a6d43d4 100644
--- a/mg.c
+++ b/mg.c
@@ -843,8 +843,7 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg)
{
i = t1 - s1;
s = rx->subbeg + s1;
- if (!rx->subbeg)
- break;
+ assert(rx->subbeg);
getrx:
if (i >= 0) {
diff --git a/pp.c b/pp.c
index d5c2679f44..3aaad3b4bd 100644
--- a/pp.c
+++ b/pp.c
@@ -4166,8 +4166,7 @@ PP(pp_shift)
AV * const av = (AV*)POPs;
SV * const sv = PL_op->op_type == OP_SHIFT ? av_shift(av) : av_pop(av);
EXTEND(SP, 1);
- if (!sv)
- RETPUSHUNDEF;
+ assert (sv);
if (AvREAL(av))
(void)sv_2mortal(sv);
PUSHs(sv);