summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/fsutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/fsutil.c b/src/shared/fsutil.c
index 45a64f6..a03ed0c 100644
--- a/src/shared/fsutil.c
+++ b/src/shared/fsutil.c
@@ -35,7 +35,7 @@ void fs_normslice(long *restrict offset, size_t *restrict length, size_t max, bo
* so their sum must not overflow it. */
if ((size_t)*offset <= max) {
size_t maxlen = max - (size_t)*offset;
- if (true || *length > maxlen)
+ if (*length > maxlen)
*length = maxlen;
} else {
/* regular EOF */