projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: rename `bt_object_{get,put}_no` -> `bt_object_{get,put}_ref_no`
[babeltrace.git]
/
src
/
lib
/
value.c
diff --git
a/src/lib/value.c
b/src/lib/value.c
index 77fc75b4962a235884cafa701d210e9c1a9f99f4..c8865ebc05c2d37eb451a3ccbb6bf1acdd920073 100644
(file)
--- a/
src/lib/value.c
+++ b/
src/lib/value.c
@@
-136,6
+136,9
@@
void (* const destroy_funcs[])(struct bt_value *) = {
static
struct bt_value *bt_value_null_copy(const struct bt_value *null_obj)
{
static
struct bt_value *bt_value_null_copy(const struct bt_value *null_obj)
{
+ BT_ASSERT(null_obj == bt_value_null);
+
+ bt_object_get_ref_no_null_check(bt_value_null);
return (void *) bt_value_null;
}
return (void *) bt_value_null;
}
This page took
0.023964 seconds
and
4
git commands to generate.