Check for NULL_STR when producing error message from uuid_t constructor

This commit is contained in:
Allan Odgaard
2020-05-21 07:15:05 +07:00
parent 8200f445bc
commit 6108a437c1

View File

@@ -33,7 +33,7 @@ namespace oak
if(uuid_parse(str.c_str(), data) != 0)
{
os_log_error(OS_LOG_DEFAULT, "uuid_t: error parsing %{public}s", str.c_str());
os_log_error(OS_LOG_DEFAULT, "uuid_t: error parsing %{public}s", str == NULL_STR ? "NULL_STR" : str.c_str());
uuid_clear(data);
}
}