summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorSteffen Mueller <smueller@cpan.org>2014-02-27 08:22:17 +0100
committerSteffen Mueller <smueller@cpan.org>2014-02-27 09:07:04 +0100
commit72b09e4f13cced68883e83d20365f3a68de1740c (patch)
tree79716b726a03a957e2d45dbb902d5a4a649dc55e /op.c
parent0e7b7035500dfac5a04098aabc2be70be928dcd2 (diff)
downloadperl-72b09e4f13cced68883e83d20365f3a68de1740c.tar.gz
Remove spurious assert
kid is always dereferenced before the assert.
Diffstat (limited to 'op.c')
-rw-r--r--op.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/op.c b/op.c
index c401fbc504..45a8a37ac9 100644
--- a/op.c
+++ b/op.c
@@ -11164,10 +11164,8 @@ S_null_listop_in_list_context(pTHX_ OP *o)
kid = cLISTOPo->op_first;
/* Find the end of the chain of OPs executed within the OP_LIST. */
- while (kid->op_next != o) {
- assert(kid);
+ while (kid->op_next != o)
kid = kid->op_next;
- }
kid->op_next = o->op_next; /* patch list out of exec chain */
op_null(cUNOPo->op_first); /* NULL the pushmark */