projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Possible fix for coverity #29375
[supertux.git]
/
src
/
lisp
/
writer.cpp
diff --git
a/src/lisp/writer.cpp
b/src/lisp/writer.cpp
index
63c5aa7
..
66728fb
100644
(file)
--- a/
src/lisp/writer.cpp
+++ b/
src/lisp/writer.cpp
@@
-16,7
+16,7
@@
#include "lisp/writer.hpp"
#include "lisp/writer.hpp"
-#include "physfs/ofile_stream.hpp"
+#include "physfs/
buffered_
ofile_stream.hpp"
#include "util/log.hpp"
namespace lisp {
#include "util/log.hpp"
namespace lisp {
@@
-27,7
+27,8
@@
Writer::Writer(const std::string& filename) :
indent_depth(),
lists()
{
indent_depth(),
lists()
{
- out = new OFileStream(filename);
+ BufferedOFileStream* filestream = new BufferedOFileStream(filename);
+ out = filestream->get_stream();
out_owned = true;
indent_depth = 0;
out->precision(10);
out_owned = true;
indent_depth = 0;
out->precision(10);