commit c5b36e17600920ac1a5d519620be5b38f8f9ed39
Author:     Quentin Rameau <[email protected]>
AuthorDate: Tue Dec 15 15:13:21 2015 +0100
Commit:     sin <[email protected]>
CommitDate: Wed Dec 16 09:52:35 2015 +0000

    ed: fix cmd e/E
    
    Ensure we have a filename before taking further action.

diff --git a/ed.c b/ed.c
index 3f878eb..032bc78 100644
--- a/ed.c
+++ b/ed.c
@@ -1191,8 +1191,8 @@ repeat:
                        goto unexpected;
                if (modflag)
                        goto modified;
-               setscratch();
                strcpy(savfname, getfname());
+               setscratch();
                deflines(curln, curln);
                doread(savfname);
                clearundo();

Reply via email to