oc: several uninitialized variables
parent
b5369530f0
commit
f9550b9181
|
@ -138,6 +138,8 @@ static NSString *MAPIStoreRightFolderContact = @"RightsFolderContact";
|
||||||
MAPIStoreMapping *mapping;
|
MAPIStoreMapping *mapping;
|
||||||
NSRange slashRange;
|
NSRange slashRange;
|
||||||
|
|
||||||
|
pathComponent = nil;
|
||||||
|
|
||||||
if (isMove && [targetFolder isKindOfClass: MAPIStoreDBFolderK])
|
if (isMove && [targetFolder isKindOfClass: MAPIStoreDBFolderK])
|
||||||
{
|
{
|
||||||
path = [sogoObject path];
|
path = [sogoObject path];
|
||||||
|
|
|
@ -102,6 +102,8 @@ Class NSExceptionK, MAPIStoreFAIMessageK, MAPIStoreMessageTableK, MAPIStoreFAIMe
|
||||||
NSUInteger lastPartIdx;
|
NSUInteger lastPartIdx;
|
||||||
MAPIStoreUserContext *userContext;
|
MAPIStoreUserContext *userContext;
|
||||||
|
|
||||||
|
parts = 0;
|
||||||
|
lastPartIdx = 0;
|
||||||
folderURL = [NSURL URLWithString: [self url]];
|
folderURL = [NSURL URLWithString: [self url]];
|
||||||
/* note: -[NSURL path] returns an unescaped representation */
|
/* note: -[NSURL path] returns an unescaped representation */
|
||||||
path = [folderURL path];
|
path = [folderURL path];
|
||||||
|
@ -233,6 +235,7 @@ Class NSExceptionK, MAPIStoreFAIMessageK, MAPIStoreMessageTableK, MAPIStoreFAIMe
|
||||||
SOGoFolder *sogoFolder;
|
SOGoFolder *sogoFolder;
|
||||||
WOContext *woContext;
|
WOContext *woContext;
|
||||||
|
|
||||||
|
childFolder = nil;
|
||||||
if ([[self folderKeys] containsObject: folderKey])
|
if ([[self folderKeys] containsObject: folderKey])
|
||||||
{
|
{
|
||||||
woContext = [[self userContext] woContext];
|
woContext = [[self userContext] woContext];
|
||||||
|
|
|
@ -164,6 +164,7 @@ static Class SOGoMailFolderK, MAPIStoreMailFolderK, MAPIStoreOutboxFolderK;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
nameInContainer = nil;
|
nameInContainer = nil;
|
||||||
|
rc = MAPISTORE_ERROR;
|
||||||
|
|
||||||
folderName = nil;
|
folderName = nil;
|
||||||
for (i = 0; !folderName && i < aRow->cValues; i++)
|
for (i = 0; !folderName && i < aRow->cValues; i++)
|
||||||
|
@ -1003,6 +1004,8 @@ _parseIMAPRange (const unichar *uniString, NSArray **UIDsP)
|
||||||
uint32_t currentUid, rangeMin;
|
uint32_t currentUid, rangeMin;
|
||||||
BOOL done = NO, inRange = NO;
|
BOOL done = NO, inRange = NO;
|
||||||
|
|
||||||
|
rangeMin = 0;
|
||||||
|
currentUid = 0;
|
||||||
UIDs = [NSMutableArray array];
|
UIDs = [NSMutableArray array];
|
||||||
while (!done)
|
while (!done)
|
||||||
{
|
{
|
||||||
|
|
|
@ -474,7 +474,9 @@ rtf2html (NSData *compressedRTF)
|
||||||
MAPIStoreMessage *mainMessage;
|
MAPIStoreMessage *mainMessage;
|
||||||
|
|
||||||
//[self logWithFormat: @"METHOD '%s' (%d)", __FUNCTION__, __LINE__];
|
//[self logWithFormat: @"METHOD '%s' (%d)", __FUNCTION__, __LINE__];
|
||||||
|
|
||||||
|
containerTables = nil;
|
||||||
|
max = 0;
|
||||||
context = [self context];
|
context = [self context];
|
||||||
ownerUser = [[self userContext] sogoUser];
|
ownerUser = [[self userContext] sogoUser];
|
||||||
userIsOwner = [[context activeUser] isEqual: ownerUser];
|
userIsOwner = [[context activeUser] isEqual: ownerUser];
|
||||||
|
|
|
@ -250,6 +250,7 @@ static Class NSExceptionK, MAPIStoreFolderK;
|
||||||
id value;
|
id value;
|
||||||
|
|
||||||
tz = nil;
|
tz = nil;
|
||||||
|
tzOffset = 0;
|
||||||
|
|
||||||
newProperties = [NSMutableDictionary dictionaryWithCapacity: aRow->cValues];
|
newProperties = [NSMutableDictionary dictionaryWithCapacity: aRow->cValues];
|
||||||
for (counter = 0; counter < aRow->cValues; counter++)
|
for (counter = 0; counter < aRow->cValues; counter++)
|
||||||
|
|
|
@ -539,6 +539,7 @@ const unsigned short ansicpg874[256] = {
|
||||||
|
|
||||||
fontTable = [[[RTFFontTable alloc] init] autorelease];
|
fontTable = [[[RTFFontTable alloc] init] autorelease];
|
||||||
fontName = nil;
|
fontName = nil;
|
||||||
|
fontInfo = nil;
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|
||||||
do
|
do
|
||||||
|
@ -723,6 +724,7 @@ const unsigned short ansicpg874[256] = {
|
||||||
fontTable = nil;
|
fontTable = nil;
|
||||||
colorTable = nil;
|
colorTable = nil;
|
||||||
charset = NULL;
|
charset = NULL;
|
||||||
|
formattingOptions = nil;
|
||||||
|
|
||||||
_html = [[NSMutableData alloc] init];
|
_html = [[NSMutableData alloc] init];
|
||||||
[_html appendBytes: "<html><meta charset='utf-8'><body>" length: 34];
|
[_html appendBytes: "<html><meta charset='utf-8'><body>" length: 34];
|
||||||
|
|
Loading…
Reference in New Issue