From aa3b2ff67b4b1f0ad695aa609a40ca95ec097386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D1=80=D0=B0=D1=85=D0=B8=D1=9A=D0=B0=20=D0=A0?= =?UTF-8?q?=D0=B0=D0=B4=D0=B8=D1=9B?= Date: Sat, 6 Jul 2024 12:23:21 +0000 Subject: [PATCH] Bugfix: Clear errno to prevent "table: sysconf: Not a tty" --- table.c | 1 + 1 file changed, 1 insertion(+) diff --git a/table.c b/table.c index 9d2702a..a040f39 100644 --- a/table.c +++ b/table.c @@ -658,6 +658,7 @@ main(int argc, char** argv) } } + errno = 0; line_max = sysconf(_SC_LINE_MAX); if (line_max == -1) { -- 2.45.2