aboutsummaryrefslogtreecommitdiffstats
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--map.c6
1 files changed, 3 insertions, 3 deletions
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;