diff --git a/lib/src/Utilities.cc b/lib/src/Utilities.cc index 22328058..5b0b3910 100644 --- a/lib/src/Utilities.cc +++ b/lib/src/Utilities.cc @@ -268,7 +268,7 @@ std::string getUuid() size_t len{0}; uuid_export(uuid, UUID_FMT_BIN, &str, &len); uuid_destroy(uuid); - std::string ret(binaryStringToHex((const unsigned char *)str, len)); + std::string ret{binaryStringToHex((const unsigned char *)str, len)}; free(str); return ret; #else