aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-08-23 12:29:50 +0200
committerSverker Eriksson <[email protected]>2017-08-23 12:29:50 +0200
commit7c9ea890cd2530bffeafa82abeeee876fd24a6ba (patch)
tree839aec8b295d6e06361a79b3171fed906f94339b /erts/emulator/beam
parentf0715ae80670b12f4120f2b9d3b7bd51be690ea8 (diff)
downloadotp-7c9ea890cd2530bffeafa82abeeee876fd24a6ba.tar.gz
otp-7c9ea890cd2530bffeafa82abeeee876fd24a6ba.tar.bz2
otp-7c9ea890cd2530bffeafa82abeeee876fd24a6ba.zip
erts: Allow any unicode string as crash dump slogan
i.e the first argument to erlang:halt
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/bif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c
index 8bf7e3926e..4c92b9ba2b 100644
--- a/erts/emulator/beam/bif.c
+++ b/erts/emulator/beam/bif.c
@@ -4020,7 +4020,7 @@ BIF_RETTYPE halt_2(BIF_ALIST_2)
erts_smp_proc_unlock(BIF_P, ERTS_PROC_LOCK_MAIN);
erts_exit(ERTS_ABORT_EXIT, "");
}
- else if (is_string(BIF_ARG_1) || BIF_ARG_1 == NIL) {
+ else if (is_list(BIF_ARG_1) || BIF_ARG_1 == NIL) {
# define HALT_MSG_SIZE 200
static byte halt_msg[4*HALT_MSG_SIZE+1];
Sint written;