diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-12-18 21:33:47 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-12-18 21:33:47 +0000 |
commit | 9c0a471d6aa6822bff9470f0b942e0389d3986d2 (patch) | |
tree | 5ae2315c434e85f9b34526fa2d8801ab8e9c0e32 /src | |
parent | 250a90211e1a326ffe640504bc7138349ae2eba5 (diff) | |
download | libbu++-9c0a471d6aa6822bff9470f0b942e0389d3986d2.tar.gz libbu++-9c0a471d6aa6822bff9470f0b942e0389d3986d2.tar.bz2 libbu++-9c0a471d6aa6822bff9470f0b942e0389d3986d2.tar.xz libbu++-9c0a471d6aa6822bff9470f0b942e0389d3986d2.zip |
Again?
Diffstat (limited to 'src')
-rw-r--r-- | src/serializerbinary.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serializerbinary.cpp b/src/serializerbinary.cpp index 1c0bedb..ea7ed93 100644 --- a/src/serializerbinary.cpp +++ b/src/serializerbinary.cpp | |||
@@ -43,6 +43,9 @@ void SerializerBinary::close() | |||
43 | 43 | ||
44 | void SerializerBinary::write(const void * pData, int32_t nSize) | 44 | void SerializerBinary::write(const void * pData, int32_t nSize) |
45 | { | 45 | { |
46 | if( nSize == 0 ) | ||
47 | return; | ||
48 | |||
46 | fwrite(pData, nSize, 1, fhFile); | 49 | fwrite(pData, nSize, 1, fhFile); |
47 | } | 50 | } |
48 | 51 | ||