From 60cd9ac013a349e45a50c0b2d17b0b30931d19c2 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 24 Jul 2012 16:47:10 +0200 Subject: [PATCH] Truncated temp file is an error, not warning --- xsv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xsv.c b/xsv.c index b0e9124..8fd7277 100644 --- a/xsv.c +++ b/xsv.c @@ -494,10 +494,8 @@ static int tmp_read(struct format *fmt) in_field->len = c; while (c--) { int x = getc_unlocked(tf); - if (x < 0) { - warn(fmt, "Truncated temporary file"); - return 0; - } + if (x < 0) + die("Truncated temporary file"); *line_push(&in_line) = x; } } -- 2.39.2