]> sourceware.org Git - lvm2.git/commitdiff
dmsetup: fix invalid loop test 1278127232
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 3 May 2024 23:53:54 +0000 (01:53 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 3 May 2024 23:53:54 +0000 (01:53 +0200)
Last patcheds had incorrect merging bug - fix loop test.

libdm/dm-tools/dmsetup.c

index 71815f3fdbb82d067403131f80a43330c27151d3..03de1f1d986dd02beebaefd869a8ba2dd20ab7d2 100644 (file)
@@ -6354,7 +6354,7 @@ static void _dmsetup_usage(FILE *out)
                "        [--separator <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<device> may be device name or (if only one) -u <uuid> or "
This page took 0.04586 seconds and 5 git commands to generate.