From: Karel Zak Date: Mon, 6 Jun 2022 14:15:43 +0000 (+0200) Subject: lsfd: fix compiler warning [-Werror=maybe-uninitialized] X-Git-Tag: v2.39-rc1~627 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=084284f14e5d89ae8a7a6ac228a5d67d3bf767b4;p=thirdparty%2Futil-linux.git lsfd: fix compiler warning [-Werror=maybe-uninitialized] Signed-off-by: Karel Zak --- diff --git a/misc-utils/lsfd.c b/misc-utils/lsfd.c index a9be37588b..184e8d6832 100644 --- a/misc-utils/lsfd.c +++ b/misc-utils/lsfd.c @@ -1236,7 +1236,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)