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 3cd00f3d3411ac2e9b0801c3c8d421cc5feb8744..6483c9891d83038e929b3a1b96fd3f5cd6ab07c4 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];
}
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;
ERR("Unknown context type %s", opt_type);
free(type);
ret = CMD_ERROR;
This page took
0.02657 seconds
and
4
git commands to generate.