mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-20 11:09:45 +00:00
Properly dereference function pointer to silence warning
Thanks @ksuther!
This commit is contained in:
@@ -115,7 +115,7 @@ static PLCrashReporterCallbacks plCrashCallbacks = {
|
||||
|
||||
- (instancetype)initWithCXXExceptionInfo:(const BITCrashUncaughtCXXExceptionInfo *)info {
|
||||
extern char* __cxa_demangle(const char* mangled_name, char* output_buffer, size_t* length, int* status);
|
||||
char *demangled_name = __cxa_demangle ? __cxa_demangle(info->exception_type_name ?: "", NULL, NULL, NULL) : NULL;
|
||||
char *demangled_name = &__cxa_demangle ? __cxa_demangle(info->exception_type_name ?: "", NULL, NULL, NULL) : NULL;
|
||||
|
||||
if ((self = [super
|
||||
initWithName:[NSString stringWithUTF8String:demangled_name ?: info->exception_type_name ?: ""]
|
||||
|
||||
Reference in New Issue
Block a user