Coverity report:
CID
1404929 (#1 of 1): Dereference after null check (FORWARD_NULL)
25. var_deref_model: Passing null pointer directory_to_rename to
lttng_directory_handle_rename_as_user, which dereferences it.
Reported-by: Coverity (1404929) Dereference after null check
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
creation_timestamp, NULL);
if (!directory_to_rename) {
ERR("Failed to generate initial trace chunk name while renaming trace chunk");
+ goto end;
}
free_directory_to_rename = true;
}