clang-tidy: add most bugprone warnings
[lttng-tools.git] / src / common / event-rule / kernel-syscall.cpp
index b65729cbb3be34e0e061574d6bf8c4f64b82dc72..23a432aacaaff285e6f0e3cb735d8cb1b4b3f26a 100644 (file)
@@ -120,12 +120,12 @@ static bool lttng_event_rule_kernel_syscall_is_equal(const struct lttng_event_ru
 
        LTTNG_ASSERT(a->pattern);
        LTTNG_ASSERT(b->pattern);
-       if (strcmp(a->pattern, b->pattern)) {
+       if (strcmp(a->pattern, b->pattern) != 0) {
                goto end;
        }
 
        if (a->filter_expression && b->filter_expression) {
-               if (strcmp(a->filter_expression, b->filter_expression)) {
+               if (strcmp(a->filter_expression, b->filter_expression) != 0) {
                        goto end;
                }
        } else if (!!a->filter_expression != !!b->filter_expression) {
This page took 0.023106 seconds and 4 git commands to generate.