summaryrefslogtreecommitdiff
path: root/usr.bin/sed
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1995-04-05 22:55:27 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1995-04-05 22:55:27 +0000
commitfe89da38f60b45057ad48d40be2e6ea267bd35a7 (patch)
tree13d645c40f795c05cdbe538780f69bb7c42f31e0 /usr.bin/sed
parent04ed90efd4f9bec3e5682e45ff60472dbf4c5be8 (diff)
Notes
Diffstat (limited to 'usr.bin/sed')
-rw-r--r--usr.bin/sed/compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c
index 944a2269b10d..b958ff896b99 100644
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -217,6 +217,8 @@ nonsel: /* Now parse the command */
if (!*p)
p = NULL;
cmd2 = xmalloc(sizeof(struct s_command));
+ cmd2->nonsel = cmd2->inrange = 0;
+ cmd2->a1 = cmd2->a2 = NULL;
cmd2->code = '}';
*compile_stream("}", &cmd->u.c, p) = cmd2;
cmd->next = cmd2;