diff --git a/tests/test-proc-info.c b/tests/test-proc-info.c index db69bd31..9e039c6f 100644 --- a/tests/test-proc-info.c +++ b/tests/test-proc-info.c @@ -110,7 +110,7 @@ main (int argc, char **argv) int ret, verbose = 0; unw_cursor_t c; - if (argc > 1 && strcmp (argv[0], "-v") == 0) + if (argc > 1 && strcmp (argv[1], "-v") == 0) verbose = 1; memset (&acc, 0, sizeof (acc));