aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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