2007-10-04 [colin] 3.0.2cvs9
[claws.git] / src / plugins / clamav / clamav_plugin.c
index 9e928042cff8df6e6b7f4613cfe65efbc274de69..b10cea720be7a8626ab01425465f9cc68cea9a6e 100644 (file)
@@ -201,9 +201,11 @@ void clamav_save_config(void)
                prefs_file_close_revert(pfile);
                return;
        }
-       fprintf(pfile->fp, "\n");
-
-       prefs_file_close(pfile);
+        if (fprintf(pfile->fp, "\n") < 0) {
+               FILE_OP_ERROR(rcpath, "fprintf");
+               prefs_file_close_revert(pfile);
+       } else
+               prefs_file_close(pfile);
 }
 
 void clamav_set_message_callback(MessageCallback callback)