X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.c;h=390b53827572ec802cf5e57f3bbd6f72b1909693;hb=222e461a4e629eb1a1628a6d1a3e28489a2e5347;hp=6286ed8a0a1838e49c4592e5770e02c4ab7f16df;hpb=921832f91e341414819e63d5bc4bf9af0ef215df;p=lttng-tools.git diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index 6286ed8a0..390b53827 100644 --- 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;