diff --git a/CHANGELOG.md b/CHANGELOG.md index bca67b7..6a58164 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ * Drop support old versions of Xcode. The minimal version is Xcode 11 now. * Support [Mac Catalyst](https://developer.apple.com/mac-catalyst/). * Distribute `.xcframework` archive alongside with the other options. -* Improve reliability of writing crash reports in case of memory corruption. +* Improve reliability of saving crash reports in case of memory corruption. * Fix symbolication issues with new Objective-C runtime version. ___ diff --git a/Source/PLCrashLogWriter.m b/Source/PLCrashLogWriter.m index 1a4adde..52fc64c 100644 --- a/Source/PLCrashLogWriter.m +++ b/Source/PLCrashLogWriter.m @@ -357,7 +357,8 @@ plcrash_error_t plcrash_log_writer_init (plcrash_log_writer_t *writer, PLCrashProcessInfo *parentInfo = [[PLCrashProcessInfo alloc] initWithProcessID: pinfo.parentProcessID]; if (parentInfo != nil) { if (parentInfo.processName != nil) { - plprotobuf_cbinary_data_nsstring_init(&writer->process_info.parent_process_name, parentInfo.processName); } + plprotobuf_cbinary_data_nsstring_init(&writer->process_info.parent_process_name, parentInfo.processName); + } } else { PLCF_DEBUG("Could not retreive parent process name: %s", strerror(errno)); }