hush: optimize parse_stream()
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 10 Apr 2018 23:33:54 +0000 (01:33 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 10 Apr 2018 23:34:46 +0000 (01:34 +0200)
commit0403bedccc17c8ea3059523e32ea615e5df4bc26
treef7cd40adbfc0ee1ccd0bad90e319daf146ad5937
parent89e9d5534d0e8879803ed9dbb25dff3989c31202
hush: optimize parse_stream()

Since we check for '\' anyway when we determine whether we can look ahead,
we can just check for *and handle* it there.

function                                             old     new   delta
parse_stream                                        2751    2740     -11

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