Properly dereference function pointer to silence warning

Thanks @ksuther!
This commit is contained in:
Lukas Spieß
2016-04-06 22:16:23 +02:00
parent dd09e25a6b
commit ace088d39b

View File

@@ -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 ?: ""]