diff -r c210248fa89d -r ea43c23d28d2 serviceproviders/sapi_contacts_vpbk/tsrc/testing/tcontact_add/src/tcontact_addblocks.cpp --- a/serviceproviders/sapi_contacts_vpbk/tsrc/testing/tcontact_add/src/tcontact_addblocks.cpp Tue Apr 27 17:33:05 2010 +0300 +++ b/serviceproviders/sapi_contacts_vpbk/tsrc/testing/tcontact_add/src/tcontact_addblocks.cpp Tue May 11 17:01:36 2010 +0300 @@ -158,7 +158,7 @@ TPtrC value(KNullDesC); //CContactCallback* callbk=new(ELeave) CContactCallback; TPtr8 cntIdPtrVal(acntId->Des()); - CContactIter* iterVal; + CContactIter* iterVal = NULL; TRAPD(err, iterVal = cntservice->GetListL(EContacts,cntIdPtrVal)); if(err != KErrNone) { @@ -967,7 +967,7 @@ aItem.GetNextInt(count) ; /*Add group1 to phonebook */ - TInt err1; + TInt err1 = 0; TRAPD(err,icontactservice->AddL(icallback,0,singleContact,KNullDesC8,KGroup)); if(err || err1) { @@ -1361,7 +1361,7 @@ icontactservice=CContactService::NewL(); /* Add the contactitem */ - HBufC8* cntId; + HBufC8* cntId = NULL; TRAPD(error,cntId= icontactservice->AddL(singleContact)); @@ -1441,7 +1441,7 @@ // Print to log file iLog->Log( KExample ); - HBufC8* grpId; + HBufC8* grpId = NULL; TInt count; /* Group1 to add to phonebook */