diff --git a/c_adlib/ad_kw/native/kwallets_rw.cpp b/c_adlib/ad_kw/native/kwallets_rw.cpp index ca6794d3..4dc98cf0 100644 --- a/c_adlib/ad_kw/native/kwallets_rw.cpp +++ b/c_adlib/ad_kw/native/kwallets_rw.cpp @@ -137,15 +137,13 @@ using namespace KWallet; extern "C" { - struct EnumSecretList *tempEnumSecrets = NULL; + static struct EnumSecretList *tempEnumSecrets = NULL; //void MyTest(struct EnumSecretList *enumWalletSecrets) void Aggregate(struct EnumSecretList *enumWalletSecrets) { - printf("inside natiove agg"); int retVal = 0; - tempEnumSecrets = NULL; retVal = win->ReadAllWalletSecrets(&tempEnumSecrets); struct EnumSecretList *iter = tempEnumSecrets; @@ -224,6 +222,7 @@ extern "C" free(head); head = temp; } + tempEnumSecrets = NULL; }