Mercurial > emacs
changeset 30106:bb87a284ee53
(Fsignal): Handle case that backtrace_list is null.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 07 Jul 2000 10:23:08 +0000 |
parents | d9e5b40d33c5 |
children | 5753fb56a074 |
files | src/eval.c |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c Fri Jul 07 02:03:24 2000 +0000 +++ b/src/eval.c Fri Jul 07 10:23:08 2000 +0000 @@ -1328,10 +1328,15 @@ /* Remember from where signal was called. Skip over the frame for `signal' itself. If a frame for `error' follows, skip that, too. */ - bp = backtrace_list->next; - if (bp && bp->function && EQ (*bp->function, Qerror)) - bp = bp->next; - Vsignaling_function = bp && bp->function ? *bp->function : Qnil; + Vsignaling_function = Qnil; + if (backtrace_list) + { + bp = backtrace_list->next; + if (bp && bp->function && EQ (*bp->function, Qerror)) + bp = bp->next; + if (bp && bp->function) + Vsignaling_function = *bp->function; + } for (; handlerlist; handlerlist = handlerlist->next) {