From 6108a437c19fe0f701f868981192480616c8d893 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Thu, 21 May 2020 07:15:05 +0700 Subject: [PATCH] Check for NULL_STR when producing error message from uuid_t constructor --- Frameworks/plist/src/uuid.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/plist/src/uuid.cc b/Frameworks/plist/src/uuid.cc index 9af21446..ac1dba36 100644 --- a/Frameworks/plist/src/uuid.cc +++ b/Frameworks/plist/src/uuid.cc @@ -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); } }