Correctly init LineProcessor in macosx shell integration
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 28 Dec 2022 21:50:21 +0000 (22:50 +0100)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Fri, 6 Jan 2023 15:24:35 +0000 (16:24 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/OwnCloudFinderSync/FinderSyncExt/LineProcessor.m

index f67642e7c85d5069bc041b2ce5fe2bddb79a38ea..56ec7046a2b563f07c66b7d7e5779bf70ab1fb51 100644 (file)
 -(instancetype)initWithDelegate:(id<SyncClientDelegate>)delegate
 {
     NSLog(@"Init line processor with delegate.");
-    self.delegate = delegate;
+    self = [super init];
+    if (self) {
+        self.delegate = delegate;
+    }
     return self;
 }