diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2012-07-11 22:17:58 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2012-07-11 22:17:58 +0000 |
commit | 00c43e0ca43cbae7daacb5d0931028045fb45e51 (patch) | |
tree | 079b55a910d2d7c6fbc09bfaa58c5820c2c98c43 /bin | |
parent | 691b3c3238b648da14cc33b458626d235103746b (diff) | |
download | src-test2-00c43e0ca43cbae7daacb5d0931028045fb45e51.tar.gz src-test2-00c43e0ca43cbae7daacb5d0931028045fb45e51.zip |
Notes
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/input.c b/bin/sh/input.c index 3ceaea40e39f..12f285f8b423 100644 --- a/bin/sh/input.c +++ b/bin/sh/input.c @@ -186,7 +186,7 @@ retry: if (rl_cp == NULL) rl_cp = el_gets(el, &el_len); if (rl_cp == NULL) - nr = 0; + nr = el_len == 0 ? 0 : -1; else { nr = el_len; if (nr > BUFSIZ) |