clang-tidy: add most bugprone warnings
[lttng-tools.git] / src / common / event-rule / jul-logging.cpp
index bff0aa6b6896533e3314948b84e3de45167a86f9..3db273744d18614ff109ca7d35336f6ec15d40de 100644 (file)
@@ -145,12 +145,12 @@ static bool lttng_event_rule_jul_logging_is_equal(const struct lttng_event_rule
        /* Long check. */
        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.023025 seconds and 4 git commands to generate.