]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: fix compiler warning [-Werror=maybe-uninitialized]
authorKarel Zak <kzak@redhat.com>
Mon, 6 Jun 2022 14:15:43 +0000 (16:15 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Jul 2022 15:52:44 +0000 (17:52 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsfd.c

index 414d04801d8472e85e6d959752ed5a37e1eee711..289aa92739e23db90dfa0e695bec53f9bcd271c3 100644 (file)
@@ -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)