projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: clang 'constant-out-of-range-compare' warning
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
add_context.c
diff --git
a/src/bin/lttng/commands/add_context.c
b/src/bin/lttng/commands/add_context.c
index 6286ed8a0a1838e49c4592e5770e02c4ab7f16df..390b53827572ec802cf5e57f3bbd6f72b1909693 100644
(file)
--- a/
src/bin/lttng/commands/add_context.c
+++ b/
src/bin/lttng/commands/add_context.c
@@
-474,7
+474,7
@@
int cmd_add_context(int argc, const char **argv)
}
type->opt = &ctx_opts[index];
- if (type->opt->
ctx_type == -1
) {
+ if (type->opt->
symbol == NULL
) {
ERR("Unknown context type %s", opt_type);
free(type);
ret = CMD_ERROR;
This page took
0.023325 seconds
and
4
git commands to generate.