This commit is contained in:
antao 2019-12-09 17:28:25 +08:00
parent 0a990f4331
commit f1b5f2797c
1 changed files with 1 additions and 1 deletions

View File

@ -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