summaryrefslogtreecommitdiffstats
path: root/stream/rar.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/rar.c')
-rw-r--r--stream/rar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/rar.c b/stream/rar.c
index 7fae5e35ac..9d8b64717a 100644
--- a/stream/rar.c
+++ b/stream/rar.c
@@ -257,8 +257,7 @@ exit:
/* We stop on the first non empty file if we cannot seek */
if (current) {
- bool can_seek = s->end_pos > 0;
- if (!can_seek && current->size > 0)
+ if (!s->seekable && current->size > 0)
return -1;
}