aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-01-10 07:56:32 +0100
committerBjörn Gustavsson <[email protected]>2012-01-11 16:43:38 +0100
commite71de38e077199d7d36cf5e3e6017cdd12dff1ba (patch)
tree1f68ddab741636482d0e1a0f951cc44ee23ed9b6 /erts
parent7b8b454ee8c94abe789377590423506b95a5e109 (diff)
downloadotp-e71de38e077199d7d36cf5e3e6017cdd12dff1ba.tar.gz
otp-e71de38e077199d7d36cf5e3e6017cdd12dff1ba.tar.bz2
otp-e71de38e077199d7d36cf5e3e6017cdd12dff1ba.zip
beam_load.c: Don't show unnecessary context in errors
For errors that occur after reading the code chunking, saying that the error occurred in the last function in the module and in the instruction int_code_end/0 is just confusing.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/beam_load.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index 3baef6906e..d9f3e3f4c6 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -2437,6 +2437,9 @@ load_code(LoaderState* stp)
case op_int_code_end:
stp->code_buffer_size = code_buffer_size;
stp->ci = ci;
+ stp->function = THE_NON_VALUE;
+ stp->genop = NULL;
+ stp->specific_op = -1;
return 1;
}