Backported to glibc 2.8
[lttng-tools.git] / src / bin / lttng / commands / add_context.c
index 3cd00f3d3411ac2e9b0801c3c8d421cc5feb8744..6483c9891d83038e929b3a1b96fd3f5cd6ab07c4 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.024748 seconds and 4 git commands to generate.