mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-31 02:28:54 -04:00
parent
e1d9a4fb53
commit
ce790dcd3a
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,11 @@ inline std::string StatusToErrorMessage(OSStatus status)
|
|||
return std::to_string(status);
|
||||
}
|
||||
|
||||
std::string result(CFStringGetCStringPtr(text, kCFStringEncodingUTF8));
|
||||
auto msg = CFStringGetCStringPtr(text, kCFStringEncodingUTF8);
|
||||
std::string result;
|
||||
if (msg) {
|
||||
result = msg;
|
||||
}
|
||||
CFRelease(text);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue