projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix strncmp for the help option check
[lttng-tools.git]
/
lttng
/
lttng.c
diff --git
a/lttng/lttng.c
b/lttng/lttng.c
index 45a6fa0be1f961f84dfe10c74fcd9d8a8d0ec721..69b563d4a643eb80db6718673602ebe67efb9c4b 100644
(file)
--- a/
lttng/lttng.c
+++ b/
lttng/lttng.c
@@
-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.028017 seconds
and
4
git commands to generate.