From edae77b644ebb05a7448683d5b77f5ab8f75eba9 Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 27 Oct 2004 20:57:26 +0000 Subject: [PATCH] minor cleanups git-svn-id: http://svn.opengroupware.org/SOPE/trunk@322 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-core/NGExtensions/NGExtensions/NGHashMap.h | 1 - sope-mime/NGImap4/NGImap4Client.m | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sope-core/NGExtensions/NGExtensions/NGHashMap.h b/sope-core/NGExtensions/NGExtensions/NGHashMap.h index 2741fef7..48425f42 100644 --- a/sope-core/NGExtensions/NGExtensions/NGHashMap.h +++ b/sope-core/NGExtensions/NGExtensions/NGHashMap.h @@ -18,7 +18,6 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// $Id$ #ifndef __NGExtensions_NGHashMap_H__ #define __NGExtensions_NGHashMap_H__ diff --git a/sope-mime/NGImap4/NGImap4Client.m b/sope-mime/NGImap4/NGImap4Client.m index 4006e48f..94df12f0 100644 --- a/sope-mime/NGImap4/NGImap4Client.m +++ b/sope-mime/NGImap4/NGImap4Client.m @@ -608,9 +608,9 @@ static BOOL ImapDebugEnabled = NO; */ NSString *s; id tmp; - - tmp = self->selectedFolder; - + + tmp = self->selectedFolder; // remember ptr to old folder name + if ([_folder length] == 0) return nil; if ((_folder = [self _folder2ImapFolder:_folder]) == nil) @@ -618,7 +618,7 @@ static BOOL ImapDebugEnabled = NO; self->selectedFolder = [_folder copy]; - [tmp release]; tmp = nil; + [tmp release]; tmp = nil; // release old folder name s = [NSString stringWithFormat:@"select \"%@\"", self->selectedFolder]; return [self->normer normalizeSelectResponse:[self processCommand:s]]; -- 2.39.5