Fix strncmp for the help option check
authorDavid Goulet <dgoulet@efficios.com>
Wed, 18 Jan 2012 17:21:42 +0000 (12:21 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 18 Jan 2012 17:21:42 +0000 (12:21 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
lttng/lttng.c

index 45a6fa0be1f961f84dfe10c74fcd9d8a8d0ec721..69b563d4a643eb80db6718673602ebe67efb9c4b 100644 (file)
@@ -368,7 +368,7 @@ static int check_help_command(int argc, char **argv)
 
        for (i = 0; i < argc; i++) {
                if ((strncmp(argv[i], "-h", 2) == 0) ||
-                               strncmp(argv[i], "--h", 3)) {
+                               strncmp(argv[i], "--h", 3) == 0) {
                        return 1;
                }
        }
This page took 0.025766 seconds and 4 git commands to generate.