diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/split.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/split.c b/src/split.c index 2fc6ecfcf..207cc13b3 100644 --- a/src/split.c +++ b/src/split.c @@ -336,7 +336,11 @@ line_bytes_split (size_t n_bytes) n_buffered += n_read; if (n_buffered != n_bytes) - eof = true; + { + if (n_buffered == 0) + break; + eof = true; + } /* Find where to end this chunk. */ bp = buf + n_buffered; |