diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-07-02 07:27:33 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-07-02 07:27:33 +0000 |
commit | 264f825549ecd23046ad049733870d0516d59e89 (patch) | |
tree | d16fab5f050a69aafac95bd6c134babda6e25c06 /src/serializerbinary.cpp | |
parent | d121afeeab6c7a52ae0964f5dc66cc6a3d8cf3ca (diff) | |
download | libbu++-264f825549ecd23046ad049733870d0516d59e89.tar.gz libbu++-264f825549ecd23046ad049733870d0516d59e89.tar.bz2 libbu++-264f825549ecd23046ad049733870d0516d59e89.tar.xz libbu++-264f825549ecd23046ad049733870d0516d59e89.zip |
Fixed a bug in the serializer that would close the file it was using even when
it shouldn't, and added the serializerbzip2, which lets you read and write to
compressed streams.
Diffstat (limited to '')
-rw-r--r-- | src/serializerbinary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serializerbinary.cpp b/src/serializerbinary.cpp index 4b741ae..f2d8371 100644 --- a/src/serializerbinary.cpp +++ b/src/serializerbinary.cpp | |||
@@ -29,7 +29,7 @@ SerializerBinary::~SerializerBinary() | |||
29 | 29 | ||
30 | void SerializerBinary::close() | 30 | void SerializerBinary::close() |
31 | { | 31 | { |
32 | if (fhFile != NULL) | 32 | if (fhFile != NULL && bCloseFile ) |
33 | { | 33 | { |
34 | fclose(fhFile); | 34 | fclose(fhFile); |
35 | fhFile = NULL; | 35 | fhFile = NULL; |