Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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){
Expand Down Expand Up @@ -343,4 +345,4 @@ class RpcDecoder {

};

#endif
#endif