aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-12-18 21:33:47 +0000
committerMike Buland <eichlan@xagasoft.com>2006-12-18 21:33:47 +0000
commit9c0a471d6aa6822bff9470f0b942e0389d3986d2 (patch)
tree5ae2315c434e85f9b34526fa2d8801ab8e9c0e32 /src
parent250a90211e1a326ffe640504bc7138349ae2eba5 (diff)
downloadlibbu++-9c0a471d6aa6822bff9470f0b942e0389d3986d2.tar.gz
libbu++-9c0a471d6aa6822bff9470f0b942e0389d3986d2.tar.bz2
libbu++-9c0a471d6aa6822bff9470f0b942e0389d3986d2.tar.xz
libbu++-9c0a471d6aa6822bff9470f0b942e0389d3986d2.zip
Again?
Diffstat (limited to '')
-rw-r--r--src/serializerbinary.cpp3
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
44void SerializerBinary::write(const void * pData, int32_t nSize) 44void 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