File 0510-erl_bif_list-Remove-faulty-assertion.patch of Package erlang

From 4a1ccf10f74aba2fb0e90183afa53fa51b16aa70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Mon, 10 Dec 2018 13:09:18 +0100
Subject: [PATCH] erl_bif_list: Remove faulty assertion

The variable can be an empty list.
---
 erts/emulator/beam/erl_bif_lists.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/erts/emulator/beam/erl_bif_lists.c b/erts/emulator/beam/erl_bif_lists.c
index ab4869c368..b23fa77f5f 100644
--- a/erts/emulator/beam/erl_bif_lists.c
+++ b/erts/emulator/beam/erl_bif_lists.c
@@ -1161,8 +1161,6 @@ static BIF_RETTYPE lists_reverse_onheap(Process *c_p,
     if (is_nil(list)) {
         BIF_RET(tail);
     } else if (is_list(list)) {
-        ASSERT(is_list(tail));
-
         if (cells_left > CELLS_PER_RED) {
             return lists_reverse_alloc(c_p, list, tail);
         }
-- 
2.16.4

openSUSE Build Service is sponsored by