From 68ebd51c62f0c962ecddbb6cf1f86e26d4be2f98 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 28 Feb 2026 15:10:48 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'map.c') diff --git a/map.c b/map.c index e72b02a..ea828c2 100644 --- a/map.c +++ b/map.c @@ -211,12 +211,12 @@ load_map(int fd, struct status *status, enum direction direction, const char *fn off = 0; } - if (!ended) - eprintf("%s: truncated file content", fname); - if (empty) return 0; + if (!ended) + eprintf("%s: truncated file content", fname); + qsort(status->spans, status->nspans, sizeof(*status->spans), &spancmp); min_start = -1; preshredded = refspan.end - refspan.start; -- cgit v1.2.3-70-g09d2