diff options
author | lloyd <[email protected]> | 2015-01-23 17:47:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-01-23 17:47:31 +0000 |
commit | 848314e16daed06e6e519dbf8c40edf9c85a51bf (patch) | |
tree | a7d246972486ae5f49090689090af7d351110ec6 /src/lib/compression/comp_util.h | |
parent | b6cc9a4084caf6d9d4b955fadc321f6521f2b36e (diff) |
Centralize where string.h/cstring is included to mem_ops.h
See github 42 for background
Diffstat (limited to 'src/lib/compression/comp_util.h')
-rw-r--r-- | src/lib/compression/comp_util.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/compression/comp_util.h b/src/lib/compression/comp_util.h index 92989e518..6e1ee1671 100644 --- a/src/lib/compression/comp_util.h +++ b/src/lib/compression/comp_util.h @@ -9,7 +9,6 @@ #define BOTAN_COMPRESSION_UTILS_H__ #include <botan/compression.h> -#include <cstring> #include <memory> #include <unordered_map> @@ -64,13 +63,13 @@ class Zlib_Style_Stream : public Compression_Stream Zlib_Style_Stream() { - std::memset(&m_stream, 0, sizeof(stream_t)); + clear_mem(&m_stream, 1); m_allocs.reset(new Compression_Alloc_Info); } ~Zlib_Style_Stream() { - std::memset(&m_stream, 0, sizeof(stream_t)); + clear_mem(&m_stream, 1); m_allocs.reset(); } |