c5432960d9
Update to the head of the upstream staging branch * Previous patches 0001-0042 are included in the source tarball * Patches 0001-0032 are from the upstream staging branch Rename redhat patches * Previous patches 0043-0053 are now patches 0033-0043 Change back to using readline instead of libedit * The code the uses readline has been isolated from the code that is licensed gpl v2 only. Add libmpathutil libraries to spec file Add multipathc program to spec file Add multipath.conf systemd tempfile configuration to spec file Misc spec file cleanups
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Marzinski <bmarzins@redhat.com>
|
|
Date: Wed, 9 Nov 2022 15:49:42 -0600
|
|
Subject: [PATCH] multipathd: don't initialize the field width in show_path()
|
|
|
|
It's not used, so don't set it up.
|
|
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
Reviewed-by: Martin Wilck <mwilck@suse.com>
|
|
---
|
|
multipathd/cli_handlers.c | 7 +------
|
|
1 file changed, 1 insertion(+), 6 deletions(-)
|
|
|
|
diff --git a/multipathd/cli_handlers.c b/multipathd/cli_handlers.c
|
|
index 5f0dd04e..e65fb75c 100644
|
|
--- a/multipathd/cli_handlers.c
|
|
+++ b/multipathd/cli_handlers.c
|
|
@@ -67,12 +67,7 @@ static int
|
|
show_path (struct strbuf *reply, struct vectors *vecs, struct path *pp,
|
|
char *style)
|
|
{
|
|
- fieldwidth_t *width __attribute__((cleanup(cleanup_ucharp))) = NULL;
|
|
-
|
|
- if ((width = alloc_path_layout()) == NULL)
|
|
- return 1;
|
|
- get_path_layout(vecs->pathvec, 1, width);
|
|
- if (snprint_path(reply, style, pp, 0) < 0)
|
|
+ if (snprint_path(reply, style, pp, NULL) < 0)
|
|
return 1;
|
|
return 0;
|
|
}
|