Fix strncmp for the help option check
[lttng-tools.git] / 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.022948 seconds and 4 git commands to generate.