- Bug 136523. Refine code changes from prevous commit.

This commit is contained in:
Jim Norman 2005-12-05 21:55:21 +00:00
parent 217a274564
commit 60b5de2740

View File

@ -137,15 +137,13 @@ using namespace KWallet;
extern "C" extern "C"
{ {
struct EnumSecretList *tempEnumSecrets = NULL; static struct EnumSecretList *tempEnumSecrets = NULL;
//void MyTest(struct EnumSecretList *enumWalletSecrets) //void MyTest(struct EnumSecretList *enumWalletSecrets)
void Aggregate(struct EnumSecretList *enumWalletSecrets) void Aggregate(struct EnumSecretList *enumWalletSecrets)
{ {
printf("inside natiove agg");
int retVal = 0; int retVal = 0;
tempEnumSecrets = NULL;
retVal = win->ReadAllWalletSecrets(&tempEnumSecrets); retVal = win->ReadAllWalletSecrets(&tempEnumSecrets);
struct EnumSecretList *iter = tempEnumSecrets; struct EnumSecretList *iter = tempEnumSecrets;
@ -224,6 +222,7 @@ extern "C"
free(head); free(head);
head = temp; head = temp;
} }
tempEnumSecrets = NULL;
} }