Fixed incorrect calls to longjmp.

This commit is contained in:
dpassage 1993-04-26 22:07:46 +00:00
parent 91ab285e99
commit 2d12aa06fa

View File

@ -36,7 +36,7 @@
#ifndef lint #ifndef lint
static char sccsid[] = "@(#)parser.c 5.3 (Berkeley) 4/12/91"; static char sccsid[] = "@(#)parser.c 5.3 (Berkeley) 4/12/91";
static char rcsid[] = "$Header: /cvsroot/src/bin/sh/parser.c,v 1.3 1993/03/23 00:29:10 cgd Exp $"; static char rcsid[] = "$Header: /cvsroot/src/bin/sh/parser.c,v 1.4 1993/04/26 22:07:46 dpassage Exp $";
#endif /* not lint */ #endif /* not lint */
#include "shell.h" #include "shell.h"
@ -1057,7 +1057,7 @@ parsebackq: {
ckfree(str); ckfree(str);
parsebackquote = 0; parsebackquote = 0;
handler = savehandler; handler = savehandler;
longjmp(handler, 1); longjmp(handler->loc, 1);
} }
INTOFF; INTOFF;
str = NULL; str = NULL;
@ -1131,7 +1131,7 @@ attyline() {
if (exception == EXERROR) if (exception == EXERROR)
out2str("\033]D\n"); out2str("\033]D\n");
handler = savehandler; handler = savehandler;
longjmp(handler, 1); longjmp(handler->loc, 1);
} }
savehandler = handler; savehandler = handler;
handler = &jmploc; handler = &jmploc;