mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Check for NULL_STR when producing error message from uuid_t constructor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user