Standardize `!ptr` i/o `ptr == NULL`, `ptr` i/o `ptr != NULL`
[babeltrace.git] / src / lib / trace-ir / field.c
index e200c153fa6b7757514e355cdaa9df3991450278..26160c20d0d0ca013e29d0a0bd0f1102ca4c8556 100644 (file)
@@ -674,7 +674,7 @@ enum bt_field_string_append_status bt_field_string_append_with_length(
                BT_FIELD_CLASS_TYPE_STRING, "Field");
 
        /* Make sure no null bytes are appended */
-       BT_ASSERT_PRE_DEV(memchr(value, '\0', length) == NULL,
+       BT_ASSERT_PRE_DEV(!memchr(value, '\0', length),
                "String value to append contains a null character: "
                "partial-value=\"%.32s\", length=%" PRIu64, value, length);
 
This page took 0.023757 seconds and 4 git commands to generate.