From 47946f241a4e69454b9cea0e18a3a1d457363d81 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 6 Oct 2023 00:28:19 -0500 Subject: [PATCH] Initialize plen. --- toys/posix/tsort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/posix/tsort.c b/toys/posix/tsort.c index fc1da2ca..e21196b7 100644 --- a/toys/posix/tsort.c +++ b/toys/posix/tsort.c @@ -42,7 +42,7 @@ static int sbse(char **a, char **b) // TODO: this treats NUL in input as EOF static void do_tsort(int fd, char *name) { - off_t plen; + off_t plen = 0; char *ss, **pair, *keep[2]; long count, // remaining unprocessed pairs len, // total strings in pair list -- 2.39.2