From c3c5419fe6f119d0c1650b8ddd40e3ce3e19a4da Mon Sep 17 00:00:00 2001 From: Laurent MAZET Date: Fri, 24 Jan 2025 13:14:32 +0100 Subject: [PATCH] fix unused variable --- function.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/function.c b/function.c index 37a911f..8a2feb8 100644 --- a/function.c +++ b/function.c @@ -291,7 +291,9 @@ void getinfo (char *dirname, elem_t *elem) free (name); - elem->nlk = sb.st_nlink; + if (!error) { + elem->nlk = sb.st_nlink; + } } void createstatus (char *status, elem_t *elem) -- 2.30.2