clang-tidy: add most bugprone warnings
[lttng-tools.git] / src / bin / lttng / commands / add_context.cpp
index cc5e487df3b8b0d8398c32a7c229af07f061f4c9..79142cc65f29522e629d7bc2fede64f01c4d0c9f 100644 (file)
@@ -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;
        }
 
This page took 0.022811 seconds and 4 git commands to generate.