diff options
Diffstat (limited to 'src/cache')
| -rw-r--r-- | src/cache/handle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cache/handle.c b/src/cache/handle.c index 10d1992..9f39f8e 100644 --- a/src/cache/handle.c +++ b/src/cache/handle.c @@ -24,7 +24,9 @@ s32 cch_handle_read(struct cch_handle *handle, u8 *buf, s32 size) off_t filesize = cch_entry_get_size(handle->entry); if (size < 0) filesize = wait_for_size(handle, handler); if (filesize > 0) { - if (handle->pointer >= filesize) return CAMU_ERR_EOF; + if (handle->pointer >= filesize) { + return CAMU_ERR_EOF; + } if (handle->pointer + size >= filesize) { size = filesize - handle->pointer; } |