From 09426b46636a6d87905d4c43e86a1a5e0fcb25c1 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 4 May 2024 01:53:54 +0200 Subject: [PATCH] dmsetup: fix invalid loop test Last patcheds had incorrect merging bug - fix loop test. --- libdm/dm-tools/dmsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/dm-tools/dmsetup.c b/libdm/dm-tools/dmsetup.c index 71815f3fd..03de1f1d9 100644 --- a/libdm/dm-tools/dmsetup.c +++ b/libdm/dm-tools/dmsetup.c @@ -6354,7 +6354,7 @@ static void _dmsetup_usage(FILE *out) " [--separator ]\n\n", _base_commands[_base_command].name); - for (i = 0; DM_ARRAY_SIZE(_dmsetup_commands); i++) + for (i = 0; i < DM_ARRAY_SIZE(_dmsetup_commands); ++i) fprintf(out, "\t%s %s\n", _dmsetup_commands[i].name, _dmsetup_commands[i].help); fprintf(out, "\n may be device name or (if only one) -u or "