From e022805f1d908cd9da8701db99a8e8ffd97c5519 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 4 Jul 2023 22:46:50 +0200 Subject: [PATCH] pool: do not pass empty string in callback When preparing cmdline to executing dmpd tool, avoid adding empty string ("") on such line. --- lib/activate/dev_manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 1f4d7c98b..d75df1d78 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -2529,7 +2529,8 @@ static int _pool_callback(struct dm_tree_node *node, data->global); return 0; } - argv[++args] = cv->v.str; + if (cv->v.str[0]) + argv[++args] = cv->v.str; } if (args == 16) {