From c4c1de771c2a72e5282b8ce3b1783028d48d917b Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 6 Jul 2018 12:40:43 -0400 Subject: [PATCH] Minor code improvement in SQLSource.m --- SoObjects/SOGo/SQLSource.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SoObjects/SOGo/SQLSource.m b/SoObjects/SOGo/SQLSource.m index 6773a9fbd..164b07f7e 100644 --- a/SoObjects/SOGo/SQLSource.m +++ b/SoObjects/SOGo/SQLSource.m @@ -874,16 +874,17 @@ if (!ex) { NSDictionary *row; + NSMutableDictionary *mutableRow; NSArray *attrs; attrs = [channel describeResults: NO]; while ((row = [channel fetchAttributes: attrs withZone: NULL])) { - row = [row mutableCopy]; - [(NSMutableDictionary *) row setObject: self forKey: @"source"]; - [results addObject: row]; - [row release]; + mutableRow = [row mutableCopy]; + [mutableRow setObject: self forKey: @"source"]; + [results addObject: mutableRow]; + [mutableRow release]; } } else