]> err.no Git - util-linux/commitdiff
tests: fix argv[] usage in mnt_test_sysinfo.c
authorKarel Zak <kzak@redhat.com>
Tue, 6 Feb 2007 10:33:35 +0000 (11:33 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 6 Feb 2007 10:33:35 +0000 (11:33 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/helpers/mnt_test_sysinfo.c

index 0acb130b08770ba9286ea3b365c94e7ea21fdb67..90cf02337922e94877024da3f2703d8ea9a5d490 100644 (file)
@@ -85,7 +85,7 @@ main(int argc, char **argv)
        } else {
                int i;
 
-               if (strcmp(argv[0], "--help") == 0 || strcmp(argv[0], "-h") == 0) {
+               if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-h") == 0) {
                        printf("%s <option>\n", argv[0]);
                        fputs("options:\n", stdout);
                        for (fn = hlps; fn->name; fn++)