diff options
author | Nicolas Noble <nnoble@blizzard.com> | 2013-07-24 14:27:41 -0700 |
---|---|---|
committer | Nicolas Noble <nnoble@blizzard.com> | 2013-07-24 14:27:41 -0700 |
commit | d8294ff945902faf1ac26c3ad5cabef26e01ed8f (patch) | |
tree | 9e36e0f610937c3fc914554bfb0bda61e0ccffc3 /src | |
parent | 712b4bed9973c60b5c139f98e51ed804ce8a628d (diff) |
Yes, getting 0 bytes from a file is fine; it means it's EOF...
Diffstat (limited to 'src')
-rw-r--r-- | src/Input.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Input.cc b/src/Input.cc index ebcffb3..fafa649 100644 --- a/src/Input.cc +++ b/src/Input.cc @@ -249,7 +249,7 @@ ssize_t Balau::Input::read(void * buf, size_t count) throw (GeneralException) { Task::operationYield(&cbResults->evt, Task::INTERRUPTIBLE); case cbResults_t::READ: result = cbResults->result; - if (result > 0) { + if (result >= 0) { rseek(result, SEEK_CUR); } else { char str[4096]; |