From 63479cfb79c3d93cf70345f24e4fabf5907e4606 Mon Sep 17 00:00:00 2001 From: Fazlul Shahriar Date: Mon, 30 Nov 2009 12:35:05 -0800 Subject: acme: fix Load of acme with no windows R=rsc CC=codebot http://codereview.appspot.com/161048 --- src/cmd/acme/rows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd') 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); -- cgit v1.2.3