From 3b31ab31eb52578693acee07fdcf84fbeff72707 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 23 Aug 2020 14:30:12 +0300 Subject: Cleanup: Use ".binary" for binary files --- src/gmcerts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gmcerts.c') 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. */ static const char *filename_GmCerts_ = "trusted.txt"; static const char *identsDir_GmCerts_ = "idents"; -static const char *identsFilename_GmCerts_ = "idents.bin"; +static const char *identsFilename_GmCerts_ = "idents.binary"; iDeclareClass(TrustEntry) @@ -197,7 +197,6 @@ static void save_GmCerts_(const iGmCerts *d) { deinit_String(&line); } iRelease(f); - saveIdentities_GmCerts_(d); iEndCollect(); } @@ -317,6 +316,7 @@ void init_GmCerts(iGmCerts *d, const char *saveDir) { void deinit_GmCerts(iGmCerts *d) { iGuardMutex(&d->mtx, { + saveIdentities_GmCerts_(d); iForEach(PtrArray, i, &d->idents) { delete_GmIdentity(i.ptr); } -- cgit v1.2.3