[hackers] [sbase] ed: fix cmd e/E

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Tue, 15 Dec 2015 15:13:21 +0100

Ensure we have a filename before taking further action.
---
 ed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ed.c b/ed.c
index 3f878eb..032bc78 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -1191,8 +1191,8 @@ repeat:
 			goto unexpected;
 		if (modflag)
 			goto modified;
-		setscratch();
 		strcpy(savfname, getfname());
+		setscratch();
 		deflines(curln, curln);
 		doread(savfname);
 		clearundo();
-- 
2.6.4
Received on Tue Dec 15 2015 - 15:13:21 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 15 2015 - 15:24:14 CET