Don't let the pattern space become null if the `x' command is used when the

hold space is null; some functions assume it's never null.

MFC after:	3 days
This commit is contained in:
Tim J. Robbins 2002-07-03 14:32:43 +00:00
parent 13ae4922e5
commit 5a3232258e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99351

View File

@ -237,6 +237,8 @@ process()
err(1, "%s", cp->t);
break;
case 'x':
if (hs == NULL)
cspace(&HS, "", 0, REPLACE);
tspace = PS;
PS = HS;
HS = tspace;