# include "ssl.h"
#endif
#include "main.h"
+#include "safe_fclose.h"
#define NNTP_PORT 119
#ifdef USE_GNUTLS
}
newsnntp_list_free(grouplist);
}
- if (fclose(fp) == EOF) {
+ if (safe_fclose(fp) == EOF) {
log_error(LOG_PROTOCOL, ("Can't write newsgroup list\n"));
session_destroy(SESSION(session));
REMOTE_FOLDER(folder)->session = NULL;
return -1;
}
- if (fclose(tmpfp) == EOF) {
+ if (safe_fclose(tmpfp) == EOF) {
FILE_OP_ERROR(tmp, "fclose");
claws_unlink(tmp);
g_free(tmp);