aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/compression/zlib
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-01-23 17:47:31 +0000
committerlloyd <[email protected]>2015-01-23 17:47:31 +0000
commit848314e16daed06e6e519dbf8c40edf9c85a51bf (patch)
treea7d246972486ae5f49090689090af7d351110ec6 /src/lib/compression/zlib
parentb6cc9a4084caf6d9d4b955fadc321f6521f2b36e (diff)
Centralize where string.h/cstring is included to mem_ops.h
See github 42 for background
Diffstat (limited to 'src/lib/compression/zlib')
-rw-r--r--src/lib/compression/zlib/zlib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/compression/zlib/zlib.cpp b/src/lib/compression/zlib/zlib.cpp
index 10581b739..8c94e4331 100644
--- a/src/lib/compression/zlib/zlib.cpp
+++ b/src/lib/compression/zlib/zlib.cpp
@@ -120,7 +120,7 @@ class Gzip_Compression_Stream : public Zlib_Compression_Stream
Gzip_Compression_Stream(size_t level, int wbits, byte os_code) :
Zlib_Compression_Stream(level, wbits, 16)
{
- std::memset(&m_header, 0, sizeof(m_header));
+ clear_mem(&m_header, 1);
m_header.os = os_code;
m_header.time = std::time(nullptr);