projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7db205b
)
Fix strncmp for the help option check
author
David Goulet
<dgoulet@efficios.com>
Wed, 18 Jan 2012 17:21:42 +0000
(12:21 -0500)
committer
David 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
patch
|
blob
|
blame
|
history
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.025766 seconds
and
4
git commands to generate.