ash: allocate line editing structure only if needed
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 1 Jun 2019 14:35:09 +0000 (16:35 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 1 Jun 2019 14:35:09 +0000 (16:35 +0200)
commit897475ab023040efed9f199af5daffe43451c1d2
treef8f515017525fd7bc08493f5f7fc6696b7d6a857
parent6eb6e6a1e9d6e7d4dd154014ce404ec1c8175fb2
ash: allocate line editing structure only if needed

function                                             old     new   delta
optschanged                                           91     128     +37
historycmd                                            13      17      +4
setcmd                                                80      78      -2
ash_main                                            1167    1150     -17
options                                              576     552     -24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/3 up/down: 41/-43)             Total: -2 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c