aboutsummaryrefslogtreecommitdiff
path: root/hush.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-05-04 21:20:20 +0000
committerMatt Kraai <kraai@debian.org>2001-05-04 21:20:20 +0000
commitd24f878546806aa8fd50dc95fe3cc111ad10f92f (patch)
tree5bdc487480e7b798ae79f1ec4a67027d8e6509b7 /hush.c
parent7526f035f4feea48d4c686a2c5c484c4175976f9 (diff)
downloadbusybox-d24f878546806aa8fd50dc95fe3cc111ad10f92f.tar.gz
Don't reset parents context when we encounter an terminator. Fixes
if true; then if true; then true; fi; fi
Diffstat (limited to 'hush.c')
-rw-r--r--hush.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hush.c b/hush.c
index 71e40489d..976fa3805 100644
--- a/hush.c
+++ b/hush.c
@@ -1660,7 +1660,6 @@ int reserved_word(o_string *dest, struct p_context *ctx)
old->child->group = ctx->list_head;
*ctx = *old; /* physical copy */
free(old);
- ctx->w=RES_NONE;
}
b_reset (dest);
return 1;