mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
parent
422fd91255
commit
2583cc4aa4
@ -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…
Reference in New Issue
Block a user