diff options
author | Karel Zak | 2007-02-06 11:33:35 +0100 |
---|---|---|
committer | Karel Zak | 2007-02-06 11:33:35 +0100 |
commit | ca04734de12f317e4fa47da0ad6e7e3b45e8b3a8 (patch) | |
tree | ff6338709aa8e0f29411f37832b97cb5b8439fa6 /tests/helpers | |
parent | namei: new regression test (diff) | |
download | kernel-qcow2-util-linux-ca04734de12f317e4fa47da0ad6e7e3b45e8b3a8.tar.gz kernel-qcow2-util-linux-ca04734de12f317e4fa47da0ad6e7e3b45e8b3a8.tar.xz kernel-qcow2-util-linux-ca04734de12f317e4fa47da0ad6e7e3b45e8b3a8.zip |
tests: fix argv[] usage in mnt_test_sysinfo.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/helpers')
-rw-r--r-- | tests/helpers/mnt_test_sysinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/helpers/mnt_test_sysinfo.c b/tests/helpers/mnt_test_sysinfo.c index 0acb130b0..90cf02337 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 <option>\n", argv[0]); fputs("options:\n", stdout); for (fn = hlps; fn->name; fn++) |