tests: fix argv[] usage in mnt_test_sysinfo.c

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2007-02-06 11:33:35 +01:00
parent 5db4f8e3b3
commit ca04734de1
1 changed files with 1 additions and 1 deletions

View 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++)