diff options
-rw-r--r-- | src/cmd/acme/rows.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/acme/rows.c b/src/cmd/acme/rows.c index 31322f8a..36e244b4 100644 --- a/src/cmd/acme/rows.c +++ b/src/cmd/acme/rows.c @@ -631,6 +631,8 @@ rowload(Row *row, char *file, int initing) } } for(;;){ + if(l == nil) + break; dumpid = 0; switch(l[0]){ case 'e': @@ -775,8 +777,6 @@ rowload(Row *row, char *file, int initing) w->maxlines = min(w->body.fr.nlines, max(w->maxlines, w->body.fr.maxlines)); Nextline: l = rdline(b, &line); - if(l == nil) - break; } Bterm(b); fbuffree(buf); |