diff options
author | Rob Landley <rob@landley.net> | 2015-01-22 02:18:30 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-01-22 02:18:30 -0600 |
commit | 4bb3a3529704989dd9112baece164b2f51b44e89 (patch) | |
tree | 9fa1da25c3e3ad6eb6c73c258516c3c44a60e839 /lib/llist.c | |
parent | ef0546d4f536f42a57af4c32bd37f7fd752d10c2 (diff) | |
download | toybox-4bb3a3529704989dd9112baece164b2f51b44e89.tar.gz |
Fix sed s//\[newline]/ line continuations.
The problem was that readline() was returning a newline at the end of each
string, which wasn't getting stripped in the parser and thus \ wasn't at the
end of a line for -f, it was escaping a literal newline, so the continuation
logic didn't trigger. Remove some redundant null checks while we're at it,
and don't bother terminating a string we don't return (yes we leak memory
in an error path, but it's about to error_exit() anyway).
Diffstat (limited to 'lib/llist.c')
0 files changed, 0 insertions, 0 deletions