tacme: fix Load of acme with no windows - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 63479cfb79c3d93cf70345f24e4fabf5907e4606
 (DIR) parent ba940ae61c4c33766e385b63ecf49bec25f301d7
 (HTM) Author: Fazlul Shahriar <fshahriar@gmail.com>
       Date:   Mon, 30 Nov 2009 12:35:05 -0800
       
       acme: fix Load of acme with no windows
       
       R=rsc
       CC=codebot
       http://codereview.appspot.com/161048
       
       Diffstat:
         M src/cmd/acme/rows.c                 |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/acme/rows.c b/src/cmd/acme/rows.c
       t@@ -631,6 +631,8 @@ rowload(Row *row, char *file, int initing)
                        }
                }
                for(;;){
       +                if(l == nil)
       +                        break;
                        dumpid = 0;
                        switch(l[0]){
                        case 'e':
       t@@ -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);