summaryrefslogtreecommitdiff
path: root/src/gmcerts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmcerts.c')
-rw-r--r--src/gmcerts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gmcerts.c b/src/gmcerts.c
index 58ddfd0c..cc7e9702 100644
--- a/src/gmcerts.c
+++ b/src/gmcerts.c
@@ -35,7 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
35 35
36static const char *filename_GmCerts_ = "trusted.txt"; 36static const char *filename_GmCerts_ = "trusted.txt";
37static const char *identsDir_GmCerts_ = "idents"; 37static const char *identsDir_GmCerts_ = "idents";
38static const char *identsFilename_GmCerts_ = "idents.bin"; 38static const char *identsFilename_GmCerts_ = "idents.binary";
39 39
40iDeclareClass(TrustEntry) 40iDeclareClass(TrustEntry)
41 41
@@ -197,7 +197,6 @@ static void save_GmCerts_(const iGmCerts *d) {
197 deinit_String(&line); 197 deinit_String(&line);
198 } 198 }
199 iRelease(f); 199 iRelease(f);
200 saveIdentities_GmCerts_(d);
201 iEndCollect(); 200 iEndCollect();
202} 201}
203 202
@@ -317,6 +316,7 @@ void init_GmCerts(iGmCerts *d, const char *saveDir) {
317 316
318void deinit_GmCerts(iGmCerts *d) { 317void deinit_GmCerts(iGmCerts *d) {
319 iGuardMutex(&d->mtx, { 318 iGuardMutex(&d->mtx, {
319 saveIdentities_GmCerts_(d);
320 iForEach(PtrArray, i, &d->idents) { 320 iForEach(PtrArray, i, &d->idents) {
321 delete_GmIdentity(i.ptr); 321 delete_GmIdentity(i.ptr);
322 } 322 }