mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-02 06:42:59 -08:00
1 parent
e1d9a4fb53
commit
ce790dcd3a
1 file changed
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user