* SOFTWARE.
*/
+#define BT_LOG_TAG "ATTRS"
+#include <babeltrace/lib-logging-internal.h>
+
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/values.h>
#include <inttypes.h>
-
-#define BT_LOG_TAG "ATTRS"
-#include <babeltrace/lib-logging-internal.h>
+#include <assert.h>
#define BT_CTF_ATTR_NAME_INDEX 0
#define BT_CTF_ATTR_VALUE_INDEX 1
BT_LOGD("Freezing attributes object: value-addr=%p", attr_obj);
count = bt_value_array_size(attr_obj);
- if (count < 0) {
- BT_LOGE("Cannot get array value's size: value-addr=%p",
- attr_obj);
- ret = -1;
- goto end;
- }
+ assert(count >= 0);
/*
* We do not freeze the array value object itself here, since