From 24a5f2bf46432aef70fd8d2ebf6c7ba94a6ce5a2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 1 Aug 2022 16:11:41 +0200 Subject: fsutil: remove debug `true ||` in if condition --- src/shared/fsutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3