projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f27fa9
)
ash: trivial code shrink
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 9 Apr 2018 23:20:26 +0000
(
01:20
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 9 Apr 2018 23:20:26 +0000
(
01:20
+0200)
function old new delta
parse_command 1677 1674 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c
patch
|
blob
|
history
diff --git
a/shell/ash.c
b/shell/ash.c
index 24958c0fceb3208ab265129aa17d7d73a4000838..30354219797623308475ddeef4a27a5eefabe244 100644
(file)
--- 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;