We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 812dfe4 commit c6b89faCopy full SHA for c6b89fa
src/decoder.h
@@ -263,7 +263,7 @@ class RpcDecoder {
263
inline bool buffer_full() const { return _bytes_stored == BufferSize; }
264
inline bool buffer_empty() const { return _bytes_stored == 0;}
265
inline void flush_buffer() {
266
- uint8_t* discard_buf;
+ uint8_t discard_buf[CHUNK_SIZE];
267
while (_transport.read(discard_buf, CHUNK_SIZE) > 0);
268
_bytes_stored = 0;
269
}
0 commit comments