int lttng_uuid_from_str(const char *str_in, lttng_uuid& uuid_out)
{
int ret = 0;
- lttng_uuid uuid_scan;
+ lttng_uuid uuid_scan = {};
if (str_in == nullptr) {
ret = -1;
if (!lttng_uuid_is_init) {
try {
srand(lttng::random::produce_best_effort_random_seed());
- } catch (std::exception& e) {
+ } catch (const std::exception& e) {
ERR("Failed to initialize random seed during generation of UUID: %s",
e.what());
ret = -1;