From 60b5de27409a813adbf356c3989c2f7ada7930b5 Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Mon, 5 Dec 2005 21:55:21 +0000 Subject: [PATCH] - Bug 136523. Refine code changes from prevous commit. --- c_adlib/ad_kw/native/kwallets_rw.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }