{
int ret;
size_t i;
- struct lttng_action_path *path = NULL;
+ struct lttng_action_path *path = nullptr;
if (!indexes && index_count > 0) {
goto error;
goto error;
}
- lttng_dynamic_array_init(&path->indexes, sizeof(uint64_t), NULL);
+ lttng_dynamic_array_init(&path->indexes, sizeof(uint64_t), nullptr);
for (i = 0; i < index_count; i++) {
ret = lttng_dynamic_array_add_element(&path->indexes, &indexes[i]);
goto end;
error:
lttng_action_path_destroy(path);
- path = NULL;
+ path = nullptr;
end:
return path;
}
{
ssize_t consumed_size = 0, ret = -1;
const struct lttng_action_path_comm *header;
- struct lttng_action_path *action_path = NULL;
+ struct lttng_action_path *action_path = nullptr;
const struct lttng_payload_view header_view =
lttng_payload_view_from_view(view, 0, sizeof(*header));
goto end;
}
} else {
- action_path = lttng_action_path_create(NULL, 0);
+ action_path = lttng_action_path_create(nullptr, 0);
if (!action_path) {
goto end;
}