Implement safe_fclose() so we can respect the "Metadata handling"
[claws.git] / src / exportldif.c
index d9c1b49e9a3fdbbf8c180cd4f502432e79620d89..eba87379c8345d613f3684b065be9489fdb8c360 100644 (file)
@@ -38,6 +38,7 @@
 #include "exportldif.h"
 #include "xmlprops.h"
 #include "ldif.h"
+#include "safe_fclose.h"
 
 
 #ifdef MKDIR_TAKES_ONE_ARG
@@ -541,7 +542,7 @@ void exportldif_process( ExportLdifCtl *ctl, AddressCache *cache )
 
        rootFolder = cache->rootFolder;
        exportldif_fmt_folder( ctl, ldifFile, rootFolder );
-       fclose( ldifFile );
+       safe_fclose( ldifFile );
        ctl->retVal = MGU_SUCCESS;
 }