X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.cpp;fp=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.cpp;h=79142cc65f29522e629d7bc2fede64f01c4d0c9f;hp=cc5e487df3b8b0d8398c32a7c229af07f061f4c9;hb=5c7248cd5bce45bf64d563fb4e130a63bf345f11;hpb=cd9adb8b829564212158943a0d279bb35322ab30 diff --git a/src/bin/lttng/commands/add_context.cpp b/src/bin/lttng/commands/add_context.cpp index cc5e487df..79142cc65 100644 --- a/src/bin/lttng/commands/add_context.cpp +++ b/src/bin/lttng/commands/add_context.cpp @@ -976,7 +976,7 @@ static struct ctx_type *get_context_type(const char *ctx) } /* String starts with $app. */ - if (strncmp(ctx, app_ctx_prefix, sizeof(app_ctx_prefix) - 1)) { + if (strncmp(ctx, app_ctx_prefix, sizeof(app_ctx_prefix) - 1) != 0) { goto not_found; }