[hackers] [sbase] delete pattern space before updating ranges on c,d,D || Evan Gates

From: <git_AT_suckless.org>
Date: Wed, 3 Jun 2015 16:37:56 +0200 (CEST)

commit 844267bce4cda7f8aef4e88b31a4b2cedcecf54b
Author: Evan Gates <evan.gates_AT_gmail.com>
Date: Wed Jun 3 07:31:31 2015 -0700

    delete pattern space before updating ranges on c,d,D

diff --git a/sed.c b/sed.c
index b8e4be2..a5ca4b4 100644
--- a/sed.c
+++ b/sed.c
_AT_@ -1665,6 +1665,7 @@ app_line(void)
 static void
 new_next(void)
 {
+ *patt.str = '\0';
         update_ranges(pc + 1, prog + pcap);
         new_line();
         pc = prog - 1;
Received on Wed Jun 03 2015 - 16:37:56 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 03 2015 - 16:48:10 CEST