diff options
author | Fazlul Shahriar <fshahriar@gmail.com> | 2009-11-30 12:35:05 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2009-11-30 12:35:05 -0800 |
commit | 63479cfb79c3d93cf70345f24e4fabf5907e4606 (patch) | |
tree | 3cea79562b9800896affd0a580b58b858ffeb96d /src | |
parent | ba940ae61c4c33766e385b63ecf49bec25f301d7 (diff) | |
download | plan9port-63479cfb79c3d93cf70345f24e4fabf5907e4606.tar.gz plan9port-63479cfb79c3d93cf70345f24e4fabf5907e4606.tar.bz2 plan9port-63479cfb79c3d93cf70345f24e4fabf5907e4606.zip |
acme: fix Load of acme with no windows
R=rsc
CC=codebot
http://codereview.appspot.com/161048
Diffstat (limited to 'src')
-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); |