Standardize `strcmp(a, b) == 0` instead of `!strcmp(a, b)`
[babeltrace.git] / src / lib / graph / component.c
index b780d1bf4388112723b774a075df6baa6c270c5e..22119689dd4873fea9a94c55c682b6d741f0fa42 100644 (file)
@@ -410,7 +410,7 @@ struct bt_port *borrow_port_by_name(GPtrArray *ports,
        for (i = 0; i < ports->len; i++) {
                struct bt_port *port = g_ptr_array_index(ports, i);
 
-               if (!strcmp(name, port->name->str)) {
+               if (strcmp(name, port->name->str) == 0) {
                        ret_port = port;
                        break;
                }
This page took 0.024635 seconds and 4 git commands to generate.