From: Martin Mares Date: Tue, 24 Jul 2012 14:47:10 +0000 (+0200) Subject: Truncated temp file is an error, not warning X-Git-Tag: v1.0~24 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=60cd9ac013a349e45a50c0b2d17b0b30931d19c2;p=xsv.git Truncated temp file is an error, not warning --- 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; } }