From 44e68033806b4484d9d95b57866443ec895cac9d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 6 Jun 2022 16:15:43 +0200 Subject: [PATCH] lsfd: fix compiler warning [-Werror=maybe-uninitialized] Signed-off-by: Karel Zak --- misc-utils/lsfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/lsfd.c b/misc-utils/lsfd.c index 414d04801d..289aa92739 100644 --- a/misc-utils/lsfd.c +++ b/misc-utils/lsfd.c @@ -1152,7 +1152,7 @@ static void read_process(struct lsfd_control *ctl, struct path_cxt *pc, */ if (ctl->threads && leader == NULL) { DIR *sub = NULL; - pid_t tid; + pid_t tid = 0; while (procfs_process_next_tid(pc, &sub, &tid) == 0) { if (tid == pid) -- 2.47.2