diff --git a/src/decoder.h b/src/decoder.h index c969f50..d0716ca 100644 --- a/src/decoder.h +++ b/src/decoder.h @@ -6,12 +6,14 @@ This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ #ifndef RPCLITE_DECODER_H #define RPCLITE_DECODER_H +// MsgPack log level +#define DEBUGLOG_DEFAULT_LOG_LEVEL_WARN + #include "MsgPack.h" #include "transport.h" #include "rpclite_utils.h" @@ -206,7 +208,7 @@ class RpcDecoder { size_t bytes_checked = 0; size_t container_size; - int type; + int type = NO_MSG; MsgPack::Unpacker unpacker; while (bytes_checked + offset < _bytes_stored){ @@ -343,4 +345,4 @@ class RpcDecoder { }; -#endif \ No newline at end of file +#endif