projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang-tidy: add most bugprone warnings
[lttng-tools.git]
/
src
/
common
/
event-rule
/
kernel-syscall.cpp
diff --git
a/src/common/event-rule/kernel-syscall.cpp
b/src/common/event-rule/kernel-syscall.cpp
index b65729cbb3be34e0e061574d6bf8c4f64b82dc72..23a432aacaaff285e6f0e3cb735d8cb1b4b3f26a 100644
(file)
--- a/
src/common/event-rule/kernel-syscall.cpp
+++ b/
src/common/event-rule/kernel-syscall.cpp
@@
-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);
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) {
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) {
goto end;
}
} else if (!!a->filter_expression != !!b->filter_expression) {
This page took
0.024472 seconds
and
4
git commands to generate.