From a172a02a9a980d084d5729cc8483bdddad0100f2 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 16 Oct 2021 10:09:02 +0200 Subject: [PATCH] cleanup: use const char buffer --- lib/locking/lvmlockd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/locking/lvmlockd.c b/lib/locking/lvmlockd.c index 4f9952d5b..b598df3d6 100644 --- a/lib/locking/lvmlockd.c +++ b/lib/locking/lvmlockd.c @@ -503,7 +503,7 @@ static int _create_sanlock_lv(struct cmd_context *cmd, struct volume_group *vg, .read_ahead = DM_READ_AHEAD_NONE, .stripes = 1, .vg_name = vg->name, - .lv_name = dm_pool_strdup(cmd->mem, lock_lv_name), + .lv_name = lock_lv_name, .zero = 1, };