From c4e5354a32a311b0a0636ff7223d914ef7926c36 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sat, 3 May 2014 18:28:20 +0200 Subject: [PATCH] sort: linebuf is no global --- sort.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sort.c b/sort.c index 6c3b6f9..4b98cd9 100644 --- a/sort.c +++ b/sort.c @@ -35,8 +35,6 @@ static bool rflag = false; static bool uflag = false; static bool nflag = false; -static struct linebuf linebuf = EMPTY_LINEBUF; - static void usage(void) { @@ -48,6 +46,7 @@ main(int argc, char *argv[]) { long i; FILE *fp; + struct linebuf linebuf = EMPTY_LINEBUF; ARGBEGIN { case 'n':