projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardize `!ptr` i/o `ptr == NULL`, `ptr` i/o `ptr != NULL`
[babeltrace.git]
/
src
/
lib
/
trace-ir
/
field.c
diff --git
a/src/lib/trace-ir/field.c
b/src/lib/trace-ir/field.c
index e200c153fa6b7757514e355cdaa9df3991450278..26160c20d0d0ca013e29d0a0bd0f1102ca4c8556 100644
(file)
--- a/
src/lib/trace-ir/field.c
+++ b/
src/lib/trace-ir/field.c
@@
-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_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);
"String value to append contains a null character: "
"partial-value=\"%.32s\", length=%" PRIu64, value, length);
This page took
0.024137 seconds
and
4
git commands to generate.