From 1af6c5be0f1dcc3ab5f2cbafb7847ff29278712a Mon Sep 17 00:00:00 2001 From: Matt White <436037+mlw@users.noreply.github.com> Date: Tue, 21 May 2024 10:35:28 -0400 Subject: [PATCH] Fix NSSecureCoding adoption in SNTFileAccessEvent --- Source/common/SNTFileAccessEvent.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/common/SNTFileAccessEvent.m b/Source/common/SNTFileAccessEvent.m index 839bf10b3..fcdb2965e 100644 --- a/Source/common/SNTFileAccessEvent.m +++ b/Source/common/SNTFileAccessEvent.m @@ -48,6 +48,7 @@ + (BOOL)supportsSecureCoding { } - (void)encodeWithCoder:(NSCoder *)coder { + [super encodeWithCoder:coder]; ENCODE(accessedPath); ENCODE(ruleVersion); ENCODE(ruleName); @@ -55,7 +56,7 @@ - (void)encodeWithCoder:(NSCoder *)coder { } - (instancetype)initWithCoder:(NSCoder *)decoder { - self = [super init]; + self = [super initWithCoder:decoder]; if (self) { DECODE(accessedPath, NSString); DECODE(ruleVersion, NSString);