clang-tidy: add most bugprone warnings
[lttng-tools.git] / src / common / event-rule / log4j-logging.cpp
index fec9589ad89d61c179b922c17e0b6887de04b21e..5655cd3bcc8fec6d0722bc166c50fe8c8f246f9d 100644 (file)
@@ -145,12 +145,12 @@ static bool lttng_event_rule_log4j_logging_is_equal(const struct lttng_event_rul
        /* 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.022998 seconds and 4 git commands to generate.