From bae27f64d2fc13679626a7479adff20be73d8119 Mon Sep 17 00:00:00 2001
From: markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Date: Fri, 3 Nov 2000 20:23:49 +0000
Subject: Removed REG_NEWLINE from regcomp to fix the same bug found in grep
 where it would not match blank lines (bug #1064). Followed Matt Kraii's suit
 on his 1.42 revision of grep. Tested it, works.

git-svn-id: svn://busybox.net/trunk/busybox@1284 69ca8d6d-28ef-0310-b511-8ec308f3f277
---
 sed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'sed.c')

diff --git a/sed.c b/sed.c
index bc0e96187..707ab9308 100644
--- a/sed.c
+++ b/sed.c
@@ -222,7 +222,7 @@ static int get_address(const char *str, int *line, regex_t **regex)
 			fatalError("unterminated match expression\n");
 		my_str[idx] = '\0';
 		*regex = (regex_t *)xmalloc(sizeof(regex_t));
-		xregcomp(*regex, my_str+1, REG_NEWLINE);
+		xregcomp(*regex, my_str+1, 0);
 		idx++; /* so it points to the next character after the last '/' */
 	}
 	else {
-- 
cgit v1.2.3-55-g6feb