Issue 302: clear any previous save error
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index 57a4840..f8683aa 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -1879,6 +1879,9 @@
 

 XMLError XMLDocument::SaveFile( FILE* fp, bool compact )

 {

+    // Clear any error from the last save, otherwise it will get reported

+    // for *this* call.

+    SetError( XML_NO_ERROR, 0, 0 );

     XMLPrinter stream( fp, compact );

     Print( &stream );

     return _errorID;