Browse Source

clear error flag

David Rose 16 years ago
parent
commit
5d1338ef99
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pandatool/src/progbase/withOutputFile.cxx

+ 1 - 0
pandatool/src/progbase/withOutputFile.cxx

@@ -86,6 +86,7 @@ get_output() {
         _output_filename.set_text();
       }
 
+      _output_stream.clear();
       if (!_output_filename.open_write(_output_stream)) {
         nout << "Unable to write to " << _output_filename << "\n";
         exit(1);