From: Karel Zak Date: Tue, 6 Feb 2007 10:33:35 +0000 (+0100) Subject: tests: fix argv[] usage in mnt_test_sysinfo.c X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca04734de12f317e4fa47da0ad6e7e3b45e8b3a8;p=util-linux tests: fix argv[] usage in mnt_test_sysinfo.c Signed-off-by: Karel Zak --- diff --git a/tests/helpers/mnt_test_sysinfo.c b/tests/helpers/mnt_test_sysinfo.c index 0acb130b..90cf0233 100644 --- a/tests/helpers/mnt_test_sysinfo.c +++ b/tests/helpers/mnt_test_sysinfo.c @@ -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