Fix sed(1) behaviour for 'G' when given null holdspace by making sure it

contains a \n.

PR:		misc/26153
Submitted by:	ashp
Reviewed by:	mike
Obtained from:	NetBSD
MFC after:	2 days
This commit is contained in:
Juli Mallett
2002-04-05 05:40:20 +00:00
parent 6e4caefe33
commit acf9afb7a3
+2
View File
@@ -148,6 +148,8 @@ process()
cspace(&PS, hs, hsl, REPLACE);
break;
case 'G':
if (hs == NULL)
cspace(&HS, "\n", 1, REPLACE);
cspace(&PS, hs, hsl, 0);
break;
case 'h':