clang-tidy: add most bugprone warnings
[lttng-tools.git] / src / common / context.cpp
index 60e30ad298d9edc9a9bf7a519dc0bba32cf794d3..14763c00d3b83beb680861304a4982bfa287fb9f 100644 (file)
@@ -29,7 +29,7 @@ int parse_application_context(const char *str, char **out_provider_name, char **
        }
 
        /* String starts with $app. */
-       if (strncmp(str, app_ctx_prefix, sizeof(app_ctx_prefix) - 1)) {
+       if (strncmp(str, app_ctx_prefix, sizeof(app_ctx_prefix) - 1) != 0) {
                goto not_found;
        }
 
This page took 0.026676 seconds and 4 git commands to generate.