Standardize `strcmp(a, b) == 0` instead of `!strcmp(a, b)`
[babeltrace.git] / src / ctf-writer / attributes.c
index f331019ecd01ea7c948d914e6659cfd0ecf34392..ba4711293132ce38bef407a0ebff847bbe57dc60 100644 (file)
@@ -31,7 +31,7 @@
 #include "common/assert.h"
 #include "common/macros.h"
 #include "compat/string.h"
-#include <babeltrace2/ctf-writer/object.h>
+#include <babeltrace2-ctf-writer/object.h>
 #include <inttypes.h>
 
 #include "values.h"
@@ -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.024101 seconds and 4 git commands to generate.