---
 ed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ed.c b/ed.c
index cee9687..9e29297 100644
--- a/ed.c
+++ b/ed.c
@@ -850,6 +850,7 @@ join(void)
        delete(line1, line2);
        inject(s.str, BEFORE);
        free(s.str);
+       s.str = NULL;
 }
 
 static void
@@ -874,7 +875,6 @@ scroll(int num)
 static void
 copy(int where)
 {
-
        if (!line1)
                error("incorrect address");
        curln = where;
-- 
2.25.1


Reply via email to