summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko2018-04-10 01:20:26 +0200
committerDenys Vlasenko2018-04-10 01:20:26 +0200
commit57b7efb0d5b16fe9d2c19b45fd240fe552bb5c36 (patch)
tree46aba63cbccce44fd457c60adcff2f98ba867fbe /shell
parent1f27fa98380c134cd0f5f03b4cd3dfe2e83c09b7 (diff)
downloadbusybox-57b7efb0d5b16fe9d2c19b45fd240fe552bb5c36.zip
busybox-57b7efb0d5b16fe9d2c19b45fd240fe552bb5c36.tar.gz
ash: trivial code shrink
function old new delta parse_command 1677 1674 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 24958c0..3035421 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11662,7 +11662,8 @@ simplecmd(void)
*vpp = NULL;
*rpp = NULL;
n = stzalloc(sizeof(struct ncmd));
- n->type = NCMD;
+ if (NCMD != 0)
+ n->type = NCMD;
n->ncmd.linno = savelinno;
n->ncmd.args = args;
n->ncmd.assign = vars;