Standardize `strcmp(a, b) == 0` instead of `!strcmp(a, b)`
[babeltrace.git] / src / ctf-writer / attributes.c
index dc51fc6b2eb23b6e6f8d08bd56be87348974210c..ba4711293132ce38bef407a0ebff847bbe57dc60 100644 (file)
@@ -205,7 +205,7 @@ struct bt_ctf_private_value *bt_ctf_attributes_borrow_field_by_name(
                field_name = bt_ctf_value_string_get(
                        bt_ctf_private_value_as_value(attr_field_name_obj));
 
-               if (!strcmp(field_name, name)) {
+               if (strcmp(field_name, name) == 0) {
                        break;
                }
 
This page took 0.023824 seconds and 4 git commands to generate.