projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Standardize `strcmp(a, b) == 0` instead of `!strcmp(a, b)`
[babeltrace.git]
/
src
/
lib
/
trace-ir
/
attributes.c
diff --git
a/src/lib/trace-ir/attributes.c
b/src/lib/trace-ir/attributes.c
index d2047b7c72dbf36cb6e70674a28408cac7d1fd4a..488dd86feab50bb4449d400797c7c255ef9d5555 100644
(file)
--- a/
src/lib/trace-ir/attributes.c
+++ b/
src/lib/trace-ir/attributes.c
@@
-191,7
+191,7
@@
struct bt_value *bt_attributes_borrow_field_by_name(
field_name = bt_value_string_get(attr_field_name_obj);
- if (
!strcmp(field_name, name)
) {
+ if (
strcmp(field_name, name) == 0
) {
break;
}
This page took
0.027468 seconds
and
4
git commands to generate.