]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: move a local variable to a narrower scope
authorMasatake YAMATO <yamato@redhat.com>
Fri, 3 Mar 2023 18:17:58 +0000 (03:17 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 18 May 2023 18:27:27 +0000 (03:27 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-fifo.c

index f73619257706593683063b7fc99fb91474b24315..aea143c7e5eb2c150a6ecad34ee87fc37dbd71da 100644 (file)
@@ -68,8 +68,8 @@ static bool fifo_fill_column(struct proc *proc __attribute__((__unused__)),
        case COL_ENDPOINTS: {
                struct fifo *this = (struct fifo *)file;
                struct list_head *e;
-               char *estr;
                list_for_each_backwardly(e, &this->endpoint.ipc->endpoints) {
+                       char *estr;
                        struct fifo *other = list_entry(e, struct fifo, endpoint.endpoints);
                        if (this == other)
                                continue;