Fix: clang 'constant-out-of-range-compare' warning
[lttng-tools.git] / src / bin / lttng / commands / add_context.c
index 6286ed8a0a1838e49c4592e5770e02c4ab7f16df..390b53827572ec802cf5e57f3bbd6f72b1909693 100644 (file)
@@ -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.022957 seconds and 4 git commands to generate.