commit a27df969bb5356746f14a4015da02292a17e5057
parent e9a7fd1da92555cd65a50bb8f5a6b0be231cb517
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sun, 1 Oct 2017 11:58:05 +0200
[as] Fix error() in nextline()
Nextline() was calling error() but the reovery point was set after
the call to nextline().
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/as/main.c b/as/main.c
@@ -63,12 +63,10 @@ dopass(char *fname)
if ((fp = fopen(fname, "r")) == NULL)
die("as: error opening '%s'", fname);
-
isections();
- while (nextline(fp, &line)) {
- if (setjmp(recover))
- continue;
+ setjmp(recover);
+ while (nextline(fp, &line)) {
linesym = NULL;
if (line.label)