Fix missing strncmp return value comparison
[lttng-tools.git] / src / bin / lttng / lttng.c
index 48658a42ddfb9d9e5f2a7ddd820f258bcd0914ac..f84ba63d7e8de48e4a9b6f44c79bbeffa72a7a89 100644 (file)
@@ -399,7 +399,7 @@ static int check_args_no_sessiond(int argc, char **argv)
                                strncmp(argv[i], "--h", sizeof("--h")) == 0 ||
                                strncmp(argv[i], "--list-options", sizeof("--list-options")) == 0 ||
                                strncmp(argv[i], "--list-commands", sizeof("--list-commands")) == 0 ||
-                               strncmp(argv[i], "version", sizeof("version"))) {
+                               strncmp(argv[i], "version", sizeof("version")) == 0) {
                        return 1;
                }
        }
This page took 0.026805 seconds and 4 git commands to generate.