- Bug 136523. Refine code changes from prevous commit.
This commit is contained in:
		| @@ -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; | ||||||
|  |  | ||||||
|  |  | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user